<< XTerm Options | Journals | Random Notes >>

XEmacs Summary

Special Keys

Emacs commands are accompanied either by simultaneously holding down the Control key (indicated by C-) or the Alt key (indicated by M-).

Essential Commands

C-h ahelp by keyword (apropos)
C-h khelp on key
C-x uundo
C-x C-gget out of current operation or command
C-x C-ssave the file
C-x C-cclose Emacs

Moving Around

C-fforward one character
C-bback one character
C-pprevious line
C-nnext line
C-abeginning of line
C-eend of line
C-lcenter current line on screen
C-vscroll forward
M-vscroll backward
M-fforward one word
M-bback one word
M-abeginning of sentence
M-eend of sentence
M-[beginning of paragraph
M-]end of paragraph
C-HOMEbegining of buffer
M-<beginning of buffer
C-ENDend of buffer
M->end of buffer
M-ggoto line

Cutting and Pasting

DELdelete the character before the cursor
C-ddelete the character following the cursor
M-ddelete the word following the cursor
C-kkill line
M-kkill sentence
C-@begin selection (use the mouse instead!)
C-wcut (wipe) the selected region
M-wcopy the selected region
C-ypaste (yank back) deleted text

Searching and Relacing

C-ssearch forward
C-rsearch in reverse
C-M-ssearch forward (regular expression)
C-M-rsearch in reverse (regular expression)
M-%query replace
M-xquery-replace-regexp query replace regular expression
RETURNescape from incremental search

Miscellaneous Operations on Text

M-ccapitalize word
M-uuppercase word
M-llowercase word
C-ttranspose characters
M-ttranspose words
M-qreformat paragraph
M-greformat each paragraph in region
M-xauto-fill-mode turn on word wrap
M-xset-variable <return> set length of lines to 45 characters
 fill-column <return> 45

Other Important Functions

C-qtreat the next character literally (quote)
C-uenter argument for (next) command
M-(n)repeat the next command (n) times

Windows

C-x 0delete this window, keep others
C-x 1delete other windows
C-x 2split window with horizontal divider
C-x 3split window with vertical divider
C-x oswitch to other window

File Commands

C-x C-ffind file and read it
C-x C-vfind and read alternate file
C-x iinsert file at cursor position
C-x C-ssave file
C-x C-wwrite buffer to a different file
C-x C-cexit emacs, and be prompted to save

Amusements

M-xhanoi towers of hanoi
M-xdoctor non-directive psychotherapy

Contents

Play Area

Contacts

Wiki Guides

Private

Shortcuts

Interests

Controls

edit SideBar
Login