You are on page 1of 2

http://ccrma.stanford.edu/guides/package/emacs/emacs.

html

Emacs Cheat Sheet

Starting emacs Quitting Help


> emacs X C H T
to start emacs. quit emacs (Can be used to see the tutorial
> emacs filename with impunity -- the H A topic
to start emacs and load a file system will prompt if the to see help about topic
> emacs -nw filename workspace has not yet X U
to start emacs with no new been saved.) undo the last command
window (load file) G
aborts any command in
progress

Cursor Positioning
F or A L
forward (right) one to beginning of line cursor in middle of screen
character. E U 20 N
B or to end of line advance 20 lines
back (left) one character < x w
start of document display the line number
P or > where the cursor is located
up one character end of document X goto-line 999
N or V
down one character page up go to line number 999
B V
left one word page down
F
right one word

Search and Replace Regions Loading and Saving


S patterntext SPC X F filename
search for patterntext; set mark at cursor create new filename for
cursor moves as you type. W editing (clears workspace)
Press once at the kill region X F filename
correct location W load in filename for editing
R patterntext copy region to kill ring X W filename
search backwards for Y write (save) as filename
patterntext; cursor moves as yank back last thing killed X S
you type. resave under the current
S filename (based on above
search for the next or name given when
occurrence starting emacs)
% oldstring
newstring
Search for oldstring and
replace it with newstring.

1 of 2 9/16/07 8:18 PM
http://ccrma.stanford.edu/guides/package/emacs/emacs.html

The Y key confirms each


replacement, N skips it, Q to
exit

Common Lisp
X L
start Common Lisp lisp
image

©1997 Fernando Lopez-Lezcano. All Rights Reserved.


nando@ccrma.stanford.edu

2 of 2 9/16/07 8:18 PM

You might also like