UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: 7.2 Summary of Commands by GroupChapter 7
The Emacs Editor
Next: 7.4 Summary of Commands by Name
 

7.3 Summary of Commands by Key

Emacs commands are presented below in two alphabetical lists. Reminder: Tables list keystrokes, command name, and description. C- indicates the Control key; M- indicates the Meta key.

7.3.1 Control-key Sequences

C-@set-mark-commandMark the beginning (or end) of a region.
C-SPACE(same as previous)
C-](none)Exit recursive edit and exit query-replace.
C-abeginning-of-lineMove to beginning of line.
C-bbackward-charMove backward one character (left).
C-c C-cinterrupt-shell-subjobTerminate the current job.
C-c C-dshell-send-eofEnd of file character.
C-c C-ukill-shell-inputErase current line.
C-c C-wbackward-kill-wordErase the previous word.
C-c C-zstop-shell-subjobSuspend the current job.
C-ddelete-charDelete character under cursor.
C-eend-of-lineMove to end of line.
C-fforward-charMove forward one character (right).
C-keyboard-quitAbort current command.
C-hhelp-commandEnter the online help system.
C-h acommand-aproposWhat commands involve this concept?
C-h bdescribe-bindingsWhat are all the key bindings for this buffer?
C-h C-cdescribe-copyingView the emacs General Public License.
C-h C-ddescribe-distributionView information on ordering emacs from FSF.
C-h C-wdescribe-no-warrantyView the (non-)warranty for emacs.
C-h cdescribe-key-brieflyWhat command does this keystroke sequence run?
C-h fdescribe-functionWhat does this function do?
C-h iinfoStart the info documentation reader.
C-h kdescribe-keyWhat command does this keystroke sequence run, and what does it do?
C-h lview-lossageWhat are the last 100 characters I typed?
C-h mdescribe-modeTell me about the mode the current buffer is in.
C-h nview-emacs-newsView news about updates to emacs.
C-h sdescribe-syntaxWhat is the syntax table for this buffer?
C-h thelp-with-tutorialRun the emacs tutorial.
C-h vdescribe-variableWhat does this variable mean, and what is its value?
C-h wwhere-isWhat is the key binding for this command?
C-kkill-lineDelete from cursor to end of line.
C-lrecenterRedraw screen with current line in the center.
C-nnext-lineMove to next line (down).
C-pprevious-lineMove to previous line (up).
C-r Meta(none)Start nonincremental search backwards.
C-r(none)Repeat nonincremental search backward.
C-r(none)Enter recursive edit (during query replace).
C-risearch-backwardStart incremental search backward.
C-s Meta(none)Start nonincremental search forward.
C-s(none)Repeat nonincremental search forward.
C-sisearch-forwardStart incremental search forward.
C-ttranspose-charsTranspose two letters.
C-u nuniversal-argumentRepeat the next command n times.
C-u C-x (start-kbd-macroExecute last macro defined, then add keystrokes.
C-u C-x q(none)Insert recursive edit in a macro definition.
C-vscroll-upMove forward one screen.
C-wkill-regionDelete a marked region.
C-x (start-kbd-macroStart macro definition.
C-x )end-kbd-macroEnd macro definition.
C-x [backward-pageMove backward one page.
C-x ]forward-pageMove forward one page.
C-x ^enlarge-windowMake window taller.
C-x {

shrink-window- horizontally

Make window narrower.
C-x }enlarge-window-horizontallyMake window wider.
C-x <scroll-leftScroll the window left.
C-x >scroll-rightScroll the window right.
C-x -inverse-add-lobal-abbrevType global abbreviation, then definition.
C-x .set-fill-prefixPrepend each line in paragraph with characters from beginning of line up to cursor column; cancel prefix by typing this command in column 1.
C-x 0delete-windowDelete current window.
C-x 1delete-other-windowsDelete all windows but this one.
C-x 2split-window-horizontallyDivide current window horizontally into two.
C-x 4 bswitch-to-buffer-other-windowSelect a buffer in the other window.
C-x 4 ffind-file-other-windowFind a file in the other window.
C-x 5split-window-verticallyDivide current window vertically into two.
C-x bswitch-to-bufferMove to the buffer specified.
C-x C-blist-buffersDisplay the buffer list.
C-x C-csave-buffers-kill-emacsExit emacs.
C-x C-ffind-fileFind file and read it.
C-x C-hinverse-add-local-abbrevType local abbreviation, then definition.
C-x C-ldowncase-regionLowercase region.
C-x C-pmark-pageMark page.
C-x C-q(none)Toggle read-only status of buffer.
C-x C-ssave-bufferSave file (may hang terminal; use C-q to restart).
C-x C-ttranspose-linesTranspose two lines.
C-x C-uupcase-regionUppercase region
C-x C-vfind-alternate-fileRead an alternate file, replacing the one read with C-x C-f.
C-x C-wwrite-fileWrite buffer contents to file.
C-x C-xexchange-point-and-markExchange location of cursor and mark.
C-x DELbackward-kill-sentenceDelete previous sentence.
C-x ecall-last-kbd-macroExecute last macro defined.
C-x hmark-whole-bufferMark buffer.
C-x iinsert-fileInsert file at cursor position.
C-x kkill-bufferDelete the buffer specified.
C-x oother-windowMove to the other window.
C-x qkbd-macro-queryInserts a query in a macro definition.
C-x ssave-some-buffersAsk whether to save each modified buffer.
C-x uadvertised-undoUndo last edit (can be done repeatedly).
C-yyankRestore what you've deleted.
C-zsuspend-emacsSuspend emacs (use exit or fg to restart).

7.3.2 Meta-key Sequences

Meta(none)Exit a query-replace or successful search.
M- - M-c

negative-argument; capitalize-word

Capitalize previous word.
M- - M-l

negative-argument; downcase-word

Lowercase previous word.
M- - M-u

negative-argument; upcase-word

Uppercase previous word.
M-$spell-wordCheck spelling of word after cursor.
M-<beginning-of-bufferMove to beginning of file.
M->end-of-bufferMove to end of file.
M-[backward-paragraphMove backward one paragraph.
M-]forward-paragraphMove forward one paragraph.
M-^delete-indentationJoin this line to the previous one.
M-ndigit-argumentRepeat the next command n times.
M-n C-x edigit-argument and call-last-kbd-macroExecute the last defined macro, n times.
M-abackward-sentenceMove backward one sentence.
M-bbackward-wordMove one word backward.
M-C-\indent-regionIndent a region to match first line in region.
M-C-cexit-recursive-editExit a recursive edit.
M-C-osplit-lineSplit line at cursor; indent to column of cursor.
M-C-vscroll-other-windowScroll other window.
M-ccapitalize-wordCapitalize first letter of word.
M-dkill-wordDelete word that cursor is on.
M-DELbackward-kill-wordDelete previous word.
M-eforward-sentenceMove forward one sentence.
M-fforward-wordMove one word forward.
M-fill-regionReformat individual paragraphs within a region.
M-hmark-paragraphMark paragraph.
M-kkill-sentenceDelete sentence the cursor is on.
M-ldowncase-wordLowercase word.
M-mback-to-indentationMove cursor to first non-blank character on line.
M-qfill-paragraphReformat paragraph.
M-scenter-lineCenter line that cursor is on.
M-ttranspose-wordsTranspose two words.
M-uupcase-wordUppercase word.
M-vscroll-downMove backward one screen.
M-x(none)Access text name of command keystrokes.


Previous: 7.2 Summary of Commands by GroupUNIX in a Nutshell: System V EditionNext: 7.4 Summary of Commands by Name
7.2 Summary of Commands by GroupBook Index7.4 Summary of Commands by Name

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System