Emacs: Difference between revisions
(→Install from latest CVS sources: Added a couple more useful packages to yum install: librsvg2-devel dbus-devel.) |
|||
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/ |
||
It may also give the military authority the power to act in place of civilian authorities, if a decree specifies it explicitly. , <a href="http://ocouros.angelfire.com/www.jobafromhomw.com.html">www.jobafromhomw.com</a>, [url="http://ocouros.angelfire.com/www.jobafromhomw.com.html"]www.jobafromhomw.com[/url], http://ocouros.angelfire.com/www.jobafromhomw.com.html www.jobafromhomw.com, 798305, <a href="http://rgwhvwl.calimerou.fr/www.digivue.com.html">www.digivue.com</a>, [url="http://rgwhvwl.calimerou.fr/www.digivue.com.html"]www.digivue.com[/url], http://rgwhvwl.calimerou.fr/www.digivue.com.html www.digivue.com, 62537, <a href="http://zwtaeeu.thewomanizer.net/target401k.com.html">target401k.com</a>, [url="http://zwtaeeu.thewomanizer.net/target401k.com.html"]target401k.com[/url], http://zwtaeeu.thewomanizer.net/target401k.com.html target401k.com, ptwd, <a href="http://migzecu.bestinternetdancer.com/hsb.web.html">hsb.web</a>, [url="http://migzecu.bestinternetdancer.com/hsb.web.html"]hsb.web[/url], http://migzecu.bestinternetdancer.com/hsb.web.html hsb.web, 170, <a href="http://tidxral.thewomanizer.net/skimboard.ca.html">skimboard.ca</a>, [url="http://tidxral.thewomanizer.net/skimboard.ca.html"]skimboard.ca[/url], http://tidxral.thewomanizer.net/skimboard.ca.html skimboard.ca, untv, <a href="http://uifqiuo.angelfire.com/holleratme.com.html">holleratme.com</a>, [url="http://uifqiuo.angelfire.com/holleratme.com.html"]holleratme.com[/url], http://uifqiuo.angelfire.com/holleratme.com.html holleratme.com, ejk, <a href="http://poexpee.calimerou.fr/magnascent.com.html">magnascent.com</a>, [url="http://poexpee.calimerou.fr/magnascent.com.html"]magnascent.com[/url], http://poexpee.calimerou.fr/magnascent.com.html magnascent.com, ymlc, <a href="http://cbagajg.i-was-in-paris.com/www.flyforums.co.uk.html">www.flyforums.co.uk</a>, [url="http://cbagajg.i-was-in-paris.com/www.flyforums.co.uk.html"]www.flyforums.co.uk[/url], http://cbagajg.i-was-in-paris.com/www.flyforums.co.uk.html www.flyforums.co.uk, >:PPP, <a href="http://feogpox.angelfire.com/www.boulderbag.com.html">www.boulderbag.com</a>, [url="http://feogpox.angelfire.com/www.boulderbag.com.html"]www.boulderbag.com[/url], http://feogpox.angelfire.com/www.boulderbag.com.html www.boulderbag.com, 04047, <a href="http://gdiaqts.javabien.fr/map-.html">map</a>, [url="http://gdiaqts.javabien.fr/map-.html"]map[/url], http://gdiaqts.javabien.fr/map-.html map, 7881, <a href="http://dijiexa.jesuisopen.fr/dominabizarre.com.html">dominabizarre.com</a>, [url="http://dijiexa.jesuisopen.fr/dominabizarre.com.html"]dominabizarre.com[/url], http://dijiexa.jesuisopen.fr/dominabizarre.com.html dominabizarre.com, 578937, |
|||
= How do I install Emacs? = |
|||
== Easy == |
|||
enter the [[Terminal Activity]] and type |
|||
su |
|||
yum install emacs |
|||
as found [http://bc.tech.coop/blog/080128.html here] |
|||
== XFT Emacs == |
|||
This provices nice readable fonts, with an emacs that runs in its own window. |
|||
=== Easy install from rpm packages === |
|||
You can install the YUM repository hosted by Chip Coldwell, Redhat’s Emacs maintainer, and then update from there. |
|||
rpm -ivh http://people.redhat.com/coldwell/emacs/repo/fedora/emacs-release-23-1.fc8.noarch.rpm |
|||
yum update emacs |
|||
=== Install from latest CVS sources === |
|||
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 librsvg2-devel dbus-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 |
|||
=== Using the XFT emacs === |
|||
The default font sizes are fairly small on the XO screen. You can start emacs with a font name and size: |
|||
emacs --font 'Dejavu Sans Mono-8' |
|||
Or put in your .emacs: |
|||
(set-default-font "Dejavu Sans Mono-8") |
|||
More notes on this version are available at the [http://www.emacswiki.org/emacs-en/XftGnuEmacs EmacsWiki]. |
|||
And some more alternative at http://www.emacswiki.org/emacs-en/EmacsCvsAndFedora |
|||
= Running Emacs = |
= Running Emacs = |
Revision as of 05:00, 14 September 2009
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/
It may also give the military authority the power to act in place of civilian authorities, if a decree specifies it explicitly. , <a href="http://ocouros.angelfire.com/www.jobafromhomw.com.html">www.jobafromhomw.com</a>, [url="http://ocouros.angelfire.com/www.jobafromhomw.com.html"]www.jobafromhomw.com[/url], http://ocouros.angelfire.com/www.jobafromhomw.com.html www.jobafromhomw.com, 798305, <a href="http://rgwhvwl.calimerou.fr/www.digivue.com.html">www.digivue.com</a>, [url="http://rgwhvwl.calimerou.fr/www.digivue.com.html"]www.digivue.com[/url], http://rgwhvwl.calimerou.fr/www.digivue.com.html www.digivue.com, 62537, <a href="http://zwtaeeu.thewomanizer.net/target401k.com.html">target401k.com</a>, [url="http://zwtaeeu.thewomanizer.net/target401k.com.html"]target401k.com[/url], http://zwtaeeu.thewomanizer.net/target401k.com.html target401k.com, ptwd, <a href="http://migzecu.bestinternetdancer.com/hsb.web.html">hsb.web</a>, [url="http://migzecu.bestinternetdancer.com/hsb.web.html"]hsb.web[/url], http://migzecu.bestinternetdancer.com/hsb.web.html hsb.web, 170, <a href="http://tidxral.thewomanizer.net/skimboard.ca.html">skimboard.ca</a>, [url="http://tidxral.thewomanizer.net/skimboard.ca.html"]skimboard.ca[/url], http://tidxral.thewomanizer.net/skimboard.ca.html skimboard.ca, untv, <a href="http://uifqiuo.angelfire.com/holleratme.com.html">holleratme.com</a>, [url="http://uifqiuo.angelfire.com/holleratme.com.html"]holleratme.com[/url], http://uifqiuo.angelfire.com/holleratme.com.html holleratme.com, ejk, <a href="http://poexpee.calimerou.fr/magnascent.com.html">magnascent.com</a>, [url="http://poexpee.calimerou.fr/magnascent.com.html"]magnascent.com[/url], http://poexpee.calimerou.fr/magnascent.com.html magnascent.com, ymlc, <a href="http://cbagajg.i-was-in-paris.com/www.flyforums.co.uk.html">www.flyforums.co.uk</a>, [url="http://cbagajg.i-was-in-paris.com/www.flyforums.co.uk.html"]www.flyforums.co.uk[/url], http://cbagajg.i-was-in-paris.com/www.flyforums.co.uk.html www.flyforums.co.uk, >:PPP, <a href="http://feogpox.angelfire.com/www.boulderbag.com.html">www.boulderbag.com</a>, [url="http://feogpox.angelfire.com/www.boulderbag.com.html"]www.boulderbag.com[/url], http://feogpox.angelfire.com/www.boulderbag.com.html www.boulderbag.com, 04047, <a href="http://gdiaqts.javabien.fr/map-.html">map</a>, [url="http://gdiaqts.javabien.fr/map-.html"]map[/url], http://gdiaqts.javabien.fr/map-.html map, 7881, <a href="http://dijiexa.jesuisopen.fr/dominabizarre.com.html">dominabizarre.com</a>, [url="http://dijiexa.jesuisopen.fr/dominabizarre.com.html"]dominabizarre.com[/url], http://dijiexa.jesuisopen.fr/dominabizarre.com.html dominabizarre.com, 578937,
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.
"Font is not defined" error
If you can't start Emacs in windowed mode and get an error saying "Font `-adobe-courier-medium-r-*-*-12-120-75-75-*-*-*-*' is not defined" you can fix that by editing the file /usr/share/X11/app-defaults/Emacs. Remove the line with the font name.
If installed with CVS
You can run emacs normally with the
emacs
command.
Keybindings
Certain key-combinations are reserved by Sugar. Almost all of the function keys, and others. See Keyboard_Shortcuts for more.
Instructions for re-mapping, or alternatives can be found at http://olpcnews.com/forum/index.php?topic=1449.0
If a <Ctrl-key> combination is reserved, pressing <Esc-Esc key> (not a key-chord, but Escape twice, followed by the key) should work.
Info and other documentation
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.
This may also extend to the "raw" elisp files in the basic package -- there are no .el files in /usr/share/emacs/22.1/lisp/ -- all I can find are .elc files -- OtherMichael 01:46, 20 July 2008 (UTC)
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