Emacs Unit3
Emacs Unit3
Gedit
Prof. Ms. S. S. Tantarpale
What is Emacs?
Emacs is different things to different people.
Depending who you ask, you'll could get any of the following responses:
• Text Editor
• Mail Client
• News Reader
• Word Processor
• Religion
• Integrated Development Environment
• Whatever you want it to be!
• Emacs is one of the most popular and powerful text editors used on
Linux (and Unix).
• It is second in popularity only to vi. It is known for it huge feature set,
ability to be easily customized, and lack of bugs.
• It's large feature set and ability to be customized actually are the result
of how Emacs was designed and implemented.
• Without going into all the details, I'll simply point out that Emacs isn't
``just an editor''.
• It is an editor written mostly in the programming language Lisp. At
the core of Emacs is a full−featured Lisp interpreter written in C.
• Only the most basic and low−level pieces of Emacs are written in C.
The majority of the editor is actually written in Lisp.
Ports and Versions
• It's worth pointing out that there are actually two different Emacs
editors:
GNU Emacs and XEmacs.
Both come from the same heritage and share most of the
same features.
Starting & Quitting Emacs
• At your shell prompt, type emacs and hit enter. Emacs should start up. If not, it is
either not installed or not in your path.
• Once you've seen Emacs, you need to know how to exit. The keystrokes for leaving
Emacs are C−x C−c. The C−x notation means hold down the Ctrl key and press x.
• In this case, you'll then need to hold down Emacs Beginner's HOWTO Ports and
Versions 3 Ctrl and press c to finish the task.
• The keystrokes used in Emacs will likely seem odd, foreign, and maybe even
uncomfortable to you at first−−especially if you're a vi user.
• Unlike vi, Emacs doesn't have separate modes for editing text and issuing
commands.
• To re−cap: emacs will start Emacs. C−x C−c will exit Emacs.
• What you'll see When Emacs starts up it will consume a whole X window (or
screen if you're running on a console instead of in the X Window System). You'll
see a menu across the top, some text in the main part of the screen, and a couple of
lines at the bottom. It will look something like this ASCII sketch:
• +−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
−+
|Buffers Files Tools Edit Search Mule Help |
||
|Welcome to GNU Emacs, one component of a Linux−based GNU system. | | | | | | |
| ... | | | |−−−1:−−−F1 *scratch* (Lisp Interaction)−−L1−−All−−−−−−−−−−−−−| |For
information about the GNU Project and its goals, type C−h C−p. | +−−−−−−−−−−−−
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−+
Keyboard Basics
• If you're a vi user, the notion of using the k, j, l, h keys to move up a
line, down a line, forward by a character, and backward by a character
probably took some getting used to. In fact, it might have taken you a
few hours or even weeks of practice before you could comfortably
navigate a file using the various key combinations available in vi.