GNU Emacs


Table of contents


Overview

GNU Emacs may be the most significant result of research in AI to date :). If you have ever been accused of being a geek, then you will probably learn to love GNU Emacs. Emacs is to `text editor' as the PPG building is to a mud hut. It has an enormous diskspace footprint, and is capable of doing just about anything, including reading the WWW, sending email, managing your email, transparent FTP (/host:filename or /user@host:filename), archie, file/directory management, running (La)TeX, managing CVS repositories (CVS), running interactive shells (M-x shell), keeping databases, acting like an arbitrary precision RPN calculator with graphics capabilies, spell-checking (M-$ for word check, M-x ispell-buffer for buffer check, etc), reading netnews, running a compiler and moving you to error points in your code, debugging C programs (M-x gdb), managing a calendar and even editing text files. While editing programs in Lisp, C, Scheme, Ada, or other languages, it is capable of indenting and highlighting your code based on syntax so that errors may be easily detected before the compiler or interpreter chokes. In addition, its language ELISP (soon to be replaced with GUILE?) is a powerful standalone language like Common Lisp but specialized for scanning and analyzing text.

Examples and Cool Stuff

Cool Modes for running Emacs. THESE ARE GREAT!. PLEASE follow this link even if you are an Emacs expert.

TIPS

Moving around

If your arrow keys do not work, or you are too lazy (or too efficient) to reach way over to use them: These are also good to know when you start Emacs for the first time:

Yes, Emacs key bindings are arcane and initially awkward. But they eventually become second nature and can be typed quickly, so Emacs regulars often feel like Emacs is brain-controlled (like in Firefox, if you saw that movie).

Info Mode

If you are new to GNU Emacs, it can seem a bit unfriendly. The best thing to do is go into info mode and look-up Emacs. To do this, press C-h i (note that this stands for "Control-h i" or on most machines means press and hold Control, then press h, then release both keys and press i). Also note that if you note the next item, info mode may be more useful to you. Info mode is a simple documentation environment which you can navigate around in via links by moving the cursor to a menu entry using pressing return on links you want to follow. Pressing "u" moves you up to the last level in the info document, "d" moves you to the top level, and "q" gets you out. The entries in info mode are hypertext versions of the entire manuals of GNU programs. They are very complete and very high quality (especially in contrast to UNIX man pages!).

Make sure that in your environment, INFOPATH points to a directory full of useful info files. As of the creation of this document, a good directory (CS/VASC) is:

setenv INFOPATH /afs/cs/misc/gnu-emacs/common/alpha/info

Exiting

One of the most annoying things about Emacs for first-time users is getting out. The magic key-sequence is C-x C-c (control-x control-c).

Useful key sequences

References

See Also

VI More UNIX-like -- VI people often think of Emacs people as wimpy. Sort of like nroff vs. TeX. Note also that a VI emulation mode called VIP exists for Emacs.

VASC Contact

You can ask me questions if you want and I will try to answer.

History

3/21/95 Created by Chris Lee.
4/19/95 Redone by Chris Lee (changed from an Emacs modes document to a
        general GNU Emacs document).

Christopher Lee | chrislee@ri.cmu.edu
Last modified: Sun Jun 1 17:58:04 1997
This page has been accessed [count] times.