Emacs: Difference between revisions
Jump to navigation
Jump to search
OtherMichael (talk | contribs) (window mode note, and external link) |
Tim.thelion (talk | contribs) (I added CVS installation information: same as is in my blog) |
||
Line 5: | Line 5: | ||
*For general Emacs information, please see http://www.gnu.org/software/emacs/, http://en.wikipedia.org/wiki/Emacs or http://www.emacswiki.org/ |
*For general Emacs information, please see http://www.gnu.org/software/emacs/, http://en.wikipedia.org/wiki/Emacs or http://www.emacswiki.org/ |
||
= How do I install Emacs? = |
|||
== Easy == |
|||
enter the [[Terminal_Activity]] and type |
enter the [[Terminal_Activity]] and type |
||
su |
su |
||
yum install emacs |
yum install emacs |
||
as found [http://bc.tech.coop/blog/080128.html here] |
as found [http://bc.tech.coop/blog/080128.html here] |
||
== CVS - This adds support for XFT fonts which allows emacs to run in it's own window == |
|||
You need like 400 MB free for this, or an SD/USB memory card/stick, in which case you only need about 60MB free. NOTE: USB key must be ext NOT fat because fat doesn't support long filenames used in emacs cvs source dir. |
|||
sudo yum install texinfo gcc make cvs gtk2-devel libXpm-devel libjpeg-devel libpng-devel libungif-devel libtiff-devel |
|||
#cd to SD or USB key and do su if you are using external storage. |
|||
sudo cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs |
|||
cd emacs |
|||
./configure --with-x-toolkit --with-xft |
|||
make bootstrap |
|||
make |
|||
sudo make install |
|||
#Edit .Xresources: |
|||
sudo nano ~/.Xresources |
|||
#add to end of file: |
|||
#emacs.FontBackend: xft |
|||
#save |
|||
⚫ | |||
== If installed with yum == |
|||
⚫ | |||
Since Emacs was installed from the terminal, and not as an activity, it must be started from the terminal. |
Since Emacs was installed from the terminal, and not as an activity, it must be started from the terminal. |
||
Line 18: | Line 39: | ||
will start Emacs in text mode. You can skip the <tt>-nw</tt> parameter to start in windowed mode, but the bit-map fonts are difficult to read on the native XO screen. |
will start Emacs in text mode. You can skip the <tt>-nw</tt> parameter to start in windowed mode, but the bit-map fonts are difficult to read on the native XO screen. |
||
== |
== If installed with CVS == |
||
You can run emacs normally with the |
|||
emacs |
|||
command. |
|||
= Python mode = |
|||
*http://www.emacswiki.org/cgi-bin/wiki/PythonMode |
*http://www.emacswiki.org/cgi-bin/wiki/PythonMode |
||
*http://sourceforge.net/projects/python-mode/ |
*http://sourceforge.net/projects/python-mode/ |
||
Line 24: | Line 51: | ||
= Alternatives = |
|||
* see [[TextEditor]] |
* see [[TextEditor]] |
||
= See Also = |
|||
*[[LISP]] |
*[[LISP]] |
||
*http://www.timthelion.com/cgi-bin/blosxom.cgi/emacs-olpc.writeback - basic installation notes, plus configuration files to use Emacs in the ebook mode |
*http://www.timthelion.com/cgi-bin/blosxom.cgi/emacs-olpc.writeback - basic installation notes, plus configuration files to use Emacs in the ebook mode |
Revision as of 21:57, 3 July 2008
This command is run in the standard Linux environment via the Terminal Activity. The GUI will probably not integrate comfortably with the XO Laptop's Sugar environment. Your user experience may vary considerably depending on the established environment and the other programs running on the laptop, may need re-installation after an OS Update. See the Linux software category for other commands. |
- This page collects information on working with Emacs specifically on the XO.
- Emacs is an extensible text-editor, customizable through Emacs Lisp
- It runs from the terminal, not from within the Sugar desktop, so is mainly of use to developers.
- For general Emacs information, please see http://www.gnu.org/software/emacs/, http://en.wikipedia.org/wiki/Emacs or http://www.emacswiki.org/
How do I install Emacs?
Easy
enter the Terminal_Activity and type
su yum install emacs
as found here
CVS - This adds support for XFT fonts which allows emacs to run in it's own window
You need like 400 MB free for this, or an SD/USB memory card/stick, in which case you only need about 60MB free. NOTE: USB key must be ext NOT fat because fat doesn't support long filenames used in emacs cvs source dir.
sudo yum install texinfo gcc make cvs gtk2-devel libXpm-devel libjpeg-devel libpng-devel libungif-devel libtiff-devel #cd to SD or USB key and do su if you are using external storage. sudo cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs cd emacs ./configure --with-x-toolkit --with-xft make bootstrap make sudo make install
#Edit .Xresources: sudo nano ~/.Xresources #add to end of file: #emacs.FontBackend: xft #save
Running Emacs
If installed with yum
Since Emacs was installed from the terminal, and not as an activity, it must be started from the terminal.
emacs -nw
will start Emacs in text mode. You can skip the -nw parameter to start in windowed mode, but the bit-map fonts are difficult to read on the native XO screen.
If installed with CVS
You can run emacs normally with the
emacs
command.
Python mode
- http://www.emacswiki.org/cgi-bin/wiki/PythonMode
- http://sourceforge.net/projects/python-mode/
- http://thegrout.blogspot.com/2008/03/emacs-python-cheatsheet.html
Alternatives
- see TextEditor
See Also
- LISP
- http://www.timthelion.com/cgi-bin/blosxom.cgi/emacs-olpc.writeback - basic installation notes, plus configuration files to use Emacs in the ebook mode