UB Information Technology

Documentation

Emacs Reference

Documentation print footer; appears at "bottom" of first page.

Adobe Reader 7 for Windows

Platform: Windows

GNU Emacs

Reference

Computing and Information Technology

Beginning a Session
Edit file fn emacs fn
Moving the Cursor
Forward one character C-f
Forward one word M-f
To the end of the line C-e
Backward one character C-b
Backward one word M-b
To the beginning of the line C-a
Up one line C-p
Down one line C-n
Go to line number n M-x goto-line n
Display current line number M-x what-line
Paging Through Text
Forward one screen C-v
Backward one word M-v
To the end of the file M->
To the beginning of the file M-<
Redraw screen C-l
Modifying Text
Delete the character before the cursor <Backspace>
Delete the character under the cursorC-d
Kill the word before the cursorM-<Backspace>
Kill the next word after the cursorM-d
Kill to the end of the lineC-k
Kill to the beginning of the lineC-x <Delete>
Kill to the end of the current sentenceM-k
Kill to the beginning of the current sentenceC-x <Backspace>
Recovering Text (Yanking)
Yank back the last thing killedC-y
Yank back previous textM-y
Searching
Search forwardC-s
Search backwardC-r
Exit search<Esc>
Saving
Save fileC-x C-s
Save file and exitC-x C-c
Suspend EmacsC-z
Replacing Text
Replace foo with barM-x replace-string foo bar
Query replacement...M-x query replace
.. then replace<space>
.. then skip to next<Backspace>
.. then replace and exit<period>
.. then replace all!
.. then go back^
.. then exit query<Esc>
Setting A Mark
Set mark hereC-<space> or C-@
Exchange point and markC-x C-x
Mark paragraphM-h
Mark entire fileC-x h
Sorting Text
Normal sortM-x sort-lines
Reverse sort<Esc>-1 M-x sort lines
Inserting Text
Scan file fnM-x view-file fn
Write buffer to file fnM-x write-file fn
Insert file fn text into the bufferM-x insert-file fn
Write region to file fnM-x write-region fn
Write region to the end of file fn M-x write-region fn
Write region to the beginning of a specified buffer M-x prepend-to-buffer
Directory Operations
Display verbose directoryC-x d
Display concise directoryC-x C-d
Find a fileC-x C-f

Help
Enter help systemC-h
Run help terminalC-h t
Remove help windowC-x 1
Scroll help windowM-C-v
Show command aproposC-h a
Show function of a keyC-h c
Describe a functionC-h f
Get mode-specific informationC-h m
Spell Checker
Check wordM-x ispell-word
Check regionM-x ispell-region
Check bufferM-x ispell-buffer