Some commands in EMACS
key:
c stands for CONTROL
M stands for META
So c-x c-c means type CONTROL and the letter x at the same time, then
after that type CONTROL and then the letter c.
HELP:::::::::::::::::::::::
help on help: c-h c-h
apropos: c-h a
BUFFERS:::::::::::::::::::::
open buffer: c-x c-f
write buffer: c-x x-s
save-as: c-x x-w
kill buffer: c-x c-k
list open buffers: c-x c-b
switch to buffer: c-x b
NOTE: a 'buffer' is a bank of memory, in this case you can see it as a
plain file.
WINDOWS:::::::::::::::::::::
close the window you are in: c-x 0
close all windows except the one you are in: c-x 1
open new window (vertical): c-x 2
open new window (horizontal): c-x 3
switch window focus: c-x o
EDITING:::::::::::::::::::::
set mark: c-space
cut marked area: c-w
cut rest of line: c-k
cut one word left of cursor: M-backspace
cut one word right of cursor: M-d
remove all but one space: M-space
paste: c-y
SEARCH/REPLACE::::::::::::::
search: c-s
replace: M-%
MISC::::::::::::::::::::::::
move cursor to beginning of line: c-a
move cursor to end of line: c-e
fill X number of a char (say I want 23 '%' characters): c-23 %
word wrap: M-q
refresh page: c-l
a good mode to know of:
M-x auto-fill-mode
Sun Aug 25 19:03:50 MEST 2002
Mattias Jansson
<fimblo@nada.kth.se>