The control key.
The "meta" key. This key does not exist on most modern keyboards. To simulate, this is usually mapped
to pressing (and releasing) the Esc key once. It is sometimes also mapped to the Alt key.
Hold the control key, and press <key>.
Press the Esc key once, and press <key>.
BUFFER LAYOUT AND NAVIGATION
select another buffer
list all buffers
close this window (when split)
go back to one buffer on screen
split screen horizantally (two windows)
split screen vertically (two windows)
switch cursor to other buffer
scroll other window
Clear screen and redisplay, scrolling the selected window to center point vertically within it (recenter).
grow buffer taller
shrink window shorter
shrink window narrower
grow window wider
FILES AND BUFFERS
read a file into a buffer
save current buffer back to file
insert contents of file into current buffer
write buffer to specified file
erases to end of line. If line is blank, the line itself is erased.
aborts a partially typed command.
undo last change to buffer.
cut marked region
copy marked region
indents selected region
M-| wc -w
Word count region
Increase font size in buffer.
Decrease font size in buffer.
M-x set-variable RET c-basic-offset RET x RET
adjust tab width to x (c-basic-offset for c mode)
uppercase word from cursor
lowercase word from cursor
C-@ or C-SPACE
set mark ARG words away
check spelling of word, offers suggestions
enable/disable Flyspell mode (highlights misspelled words)
enable/disable Flyspell mode for comments and strings
completes partial word from cursor position
corrects misspelled word under cursor (in Flyspell mode)
spellcheck the active region or the current buffer
starts ispell for the specified region
check and correct spelling of each word in the region
kill aspell or ispell
simplified spellchecks, no suggestions, corrections by hand only
quit spellchecking in ispell, moves cursor back to starting position
skips current word while spellchecking
replaces current word while spellchecking
display other options
accept spelling for all buffers for this session
accept spelling and add to dictionary
halt at current location (will restart from there later)
SEARCHING AND REPLACING
Prints the number of occurrences of a regular expression.
will prompt for string to search and replace, unconditionally replaces all occurances
delete the character at the point
delete the character before the point (i.e., backspace)
Kills the sentence from the point of the cursor
Delete word from cursor
Deletes previous sentence
move to beginning of line
move to end of line
backward a sentence
forward a sentence
forward a paragraph
backward a paragraph
move down a screen
move up a screen
move to beginning of the buffer
move to end of buffer
move up one line (useful if cursor keys do not work) (p for previous)
move down one line (n for next)
move right one character (f for forward)
move back one character (b for back)
left one word
right one word
cursor in the middle of the screen
C-U x C-N
advance x lines
display the line number where the cursor is located
M-d goto-line x
goto line number x
compile using makefile
comments region of code
comment current line
Switch to Prolog language mode (default for ".pl" is Perl mode).
opens shell buffer within emacs
execute shell command
run shell command on region
filter region through shell command
interactively specify html tag and attributes
skip across balanced tag group
Compile using LaTeX. Note: Add the following hook
(setq latex-run-command "pdflatex")
to your .emacs file to default to pdflatex.
Version Control (VC)
At the time of writing VC works with Arch, Bazaar, CVS, Git
Mercurial, Monotone, RCS, SCCS/CSSC, and Subversion.
Commits (with message) current file.
diff with previous commit.
recover session from backup in the event of crash
MISCELLANEOUS (I.E., BEING COUNTERPRODUCTIVE WITH YOUR TEXT EDITOR)
Does exactly what the name implies. You can also play pong, snake, and solitaire.
Starts Eliza, the built-in psychotherapist.
Allows you to watch the problem of the "Towers of Hanoi" solved recursively in the browser. Allows for a numerical argument that specifies the puzzle size.
Should only be ran on your birthday.
A 5x5 puzzle.
An adventure game.
Conway's "Game of Life" life simulation.
Scrambles your editor when it goes idle.
Joshua T. Guerin