Emacs: Difference between revisions
Jump to navigation
Jump to search
OtherMichael (talk | contribs) (minor text tweaks, info note.) |
OtherMichael (talk | contribs) (xref to Yum sub-section on info files, infopath) |
||
Line 47: | Line 47: | ||
= Info files = |
= Info files = |
||
If you installed via [[Yum]], Info pages are [[Yum#Documentation|excluded by default]]. |
|||
Where are the default info files? I installed via yum and Emcas can't see them by default - I get an empty dir screen when I launch info. I haven't located them elsewhere, yet. Are they installed, or skipped like man pages? [[User:OtherMichael|OtherMichael]] 12:43, 11 July 2008 (UTC) |
|||
For any packages or utilities you install, you may need to manually add their info files to the [http://www.gnu.org/software/hello/manual/texinfo/Other-Info-Directories.html Infopath]. |
|||
= Python mode = |
= Python mode = |
Revision as of 13:45, 13 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 about 400 MB free for this; if you use SD/USB memory card/stick, you only need about 60MB free. NOTE: USB key must be Ext NOT Fat because Fat doesn't support the 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.
Info files
If you installed via Yum, Info pages are excluded by default.
For any packages or utilities you install, you may need to manually add their info files to the Infopath.
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