Emacs Tutorial PDF
Emacs Tutorial PDF
SYNOPSIS
emacs [ options ]
DESCRIPTION
This page intentionally left blank.
SOURCE
MIT
SEE ALSO
sam(1), vi(1)
BUGS
Yes.
emacs
Emacs is the extensible, customizable,
self-documenting real-time display
editor.
But really ..
Content sensitive major modes for a wide variety of file types, from
plain text to source code to HTML files, with syntax coloring.
Complete built-in documentation, including a tutorial for new users.
Highly extensible through the Emacs Lisp language.
Support for many languages and their scripts, including all the
European Latin scripts, Russian, Greek, Japanese, Chinese,
Korean, Thai, Vietnamese, Lao, Ethiopian, and some Indian
scripts. (Sorry, Mayan hieroglyphs are not supported.)
A large number of extensions which add other functionality. The
GNU Emacs distribution includes many extensions; many others
are available separatelyeven a web browser
emacs
Latest Stable Release is 22.1
Runs on everything
Emacs stands for Editor MACroS
Cursor movements
These are important because they make you fast
Common movement commands
C-d
C-f
C-b
C-n
C-p
C-a
C-e
C-o
delete char
forward one char
back on char
next line
previous line
beginning of line
end of line
new line (enter)
Searching\Replacing
C-s find word forward
C-r find word in reverse
Use C-s and C-r to jump forward\back
Press [enter] to stop the cursor on the current match
M-%
replace with prompt
M-x replace-string replace without prompting
Multiple Windows
Useful for having multiple buffers on the
screen. Make use of all that screen space!
Common commands
C-x 2
C-x 3
C-x 1
C-x 0
C-x o
Macros
Macros are useful for repeatable key sequences
that may be include commands.
Common macro commands
C-x (
Extras
M-x shell
start a shell in a new buffer!
M-x dired
start a directory editor/browser
M-x tetris
start tetris
M-x w3m
web browser (see refs)
M-x gnus
start reading gnu news
M-x compile compile cmd, also recompile cmd
M-x vi-mode Vi mode for emacs!
References