UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: 7.3 Summary of Commands by KeyChapter 7
The Emacs Editor
Next: 8. The Vi Editor
 

7.4 Summary of Commands by Name

The emacs commands below are presented alphabetically by command name. Use M-x to access the command name. Reminder: Tables list command name, keystroke, and description. C- indicates the Control key; M- indicates the Meta key.

macroname(none)Execute a keyboard macro you've saved.
abbrev-mode(none)Enter (or exit) word abbreviation mode.
advertised-undoC-x uUndo last edit (can be done repeatedly).
apropos(none)What functions and variables involve this concept?
back-to-indentationM-mMove cursor to first non-blank character on line.
backward-charC-bMove backward one character (left).
backward-delete-charDELDelete previous character.
backward-kill-paragraph(none)Delete previous paragraph.
backward-kill-sentenceC-x DELDelete previous sentence.
backward-kill-wordC-c C-wErase previous word.
backward-kill-wordM-DELDelete previous word.
backward-pageC-x [Move backward one page.
backward-paragraphM-[Move backward one paragraph.
backward-sentenceM-aMove backward one sentence.
backward-wordM-bMove backward one word.
beginning-of-bufferM-<Move to beginning of file.
beginning-of-lineC-aMove to beginning of line.
call-last-kbd-macroC-x eExecute last macro defined.
capitalize-region(none)Capitalize region.
capitalize-wordM-cCapitalize first letter of word.
center-lineM-sCenter line that cursor is on.
center-paragraph(none)Center paragraph that cursor is on.
center-region(none)Center currently defined region.
command-aproposC-h aWhat commands involve this concept?
compare-windows(none)Compare two buffers; show first difference.
delete-charC-dDelete character under cursor.
delete-indentationM-^Join this line to previous one.
delete-other-windowsC-x 1Delete all windows but this one.
delete-windowC-x 0Delete current window.
delete-windows-on(none)Delete all windows on a given buffer.
describe-bindingsC-h bWhat are all the key bindings for in this buffer?
describe-copyingC-h C-cView the emacs General Public License.
describe-distributionC-h C-dView information on ordering emacs from FSF.
describe-functionC-h fWhat does this function do?
describe-keyC-h kWhat command does this keystroke sequence run, and what does it do?
describe-key-brieflyC-h cWhat command does this keystroke sequence run?
describe-modeC-h mTell me about the mode the current buffer is in.
describe-no-warrantyC-h C-wView the (non-)warranty for emacs.
describe-syntaxC-h sWhat is the syntax table for this buffer?
describe-variableC-h vWhat does this variable mean, and what is its value?
digit-argument and call-last-kbd-macroM-n C-x eExecute the last defined macro, n times.
digit-argumentM-nRepeat next command, n times.
downcase-regionC-x C-lLowercase region.
downcase-wordM-lLowercase word.
edit-abbrevs(none)Edit word abbreviations.
end-kbd-macroC-x )End macro definition.
end-of-bufferM->Move to end of file.
end-of-lineC-eMove to end of line.
enlarge-windowC-x ^Make window taller.
enlarge-window-horizontallyC-x }Make window wider.
exchange-point-and-markC-x C-xExchange location of cursor and mark.
exit-recursive-editM-C-cExit a recursive edit.
fill-individual-paragraphs(none)Reformat indented paragraphs, keeping indentation.
fill-paragraphM-qReformat paragraph.
fill-regionM-Reformat individual paragraphs within a region.
find-alternate-fileC-x C-vRead an alternate file, replacing the one read with C-x C-f.
find-fileC-x C-fFind file and read it.
find-file-other-windowC-x 4 fFind a file in the other window.
forward-charC-fMove forward one character (right).
forward-pageC-x ]Move forward one page.
forward-paragraphM-]Move forward one paragraph.
forward-sentenceM-eMove forward one sentence.
forward-wordM-fMove forward one word.
goto-char(none)Go to character n of file.
goto-line(none)Go to line n of file.
help-commandC-hEnter the online help system.
help-with-tutorialC-h tRun the emacs tutorial.
indent-regionM-C-\Indent a region to match first line in region.
indented-text-mode(none)Major mode: each tab defines a new indent for subsequent lines.
infoC-h iStart the info documentation reader.
insert-fileC-x iInsert file at cursor position.
insert-last-keyboard-macro(none)Insert the macro you named into a file.
interrupt-shell-subjobC-c C-cTerminate the current job.
inverse-add-lobal-abbrevC-x -Type global abbreviation, then definition.
inverse-add-local-abbrevC-x C-hType local abbreviation, then definition.
isearch-backwardC-rStart incremental search backward.
isearch-backward-regexpC-rSame, but search for regular expression.
isearch-forwardC-sStart incremental search forward.
isearch-forward-regexpC-rSame, but search for regular expression.
kbd-macro-queryC-x qInsert a query in a macro definition.
keyboard-quitC-Abort current command.
kill-all-abbrevs(none)Kill abbreviations for this session.
kill-bufferC-x kDelete the buffer specified.
kill-lineC-kDelete from cursor to end of line.
kill-paragraph(none)Delete from cursor to end of paragraph.
kill-regionC-wDelete a marked region.
kill-sentenceM-kDelete sentence the cursor is on.
kill-shell-inputC-c C-uErase current line.
kill-some-buffers(none)Ask about deleting each buffer.
kill-wordM-dDelete word the cursor is on.
list-abbrevs(none)View word abbreviations.
list-buffersC-x C-bDisplay buffer list.
load-file(none)Load macro files you've saved.
mark-pageC-x C-pMark page.
mark-paragraphM-hMark paragraph.
mark-whole-bufferC-x hMark buffer.
name-last-kbd-macro(none)Name last macro you created (before saving it).
negative-argument; capitalize-wordM- - M-cCapitalize previous word.
negative-argument; downcase-wordM- - M-lLowercase previous word.
negative-argument; upcase-wordM- - M-uUppercase previous word.
next-lineC-nMove to next line (down).
other-windowC-x oMove to the other window.
previous-lineC-pMove to previous line (up).
query-replace-regexp(none)Query-replace a regular expression.
recenterC-lRedraw screen, with current line in center.
rename-buffer(none)Change buffer name to specified name.
replace-regexp(none)Replace a regular expression unconditionally.
re-search-backward(none)Simple regular expression search backward.
re-search-forward(none)Simple regular expression search forward.
revert-buffer(none)Restore buffer to the state it was in when the file was last saved (or auto-saved).
save-bufferC-x C-sSave file (may hang terminal; use C-q to restart).
save-buffers-kill-emacsC-x C-cExit emacs.
save-some-buffersC-x sAsk whether to save each modified buffer.
scroll-downM-vMove backward one screen.
scroll-leftC-x <Scroll the window left.
scroll-other-windowM-C-vScroll other window.
scroll-rightC-x >Scroll the window right.
scroll-upC-vMove forward one screen.
set-fill-prefixC-x .

Prepend each line in paragraph with characters from beginning of line up to cursor column; cancel prefix by typing this command in column 1.

set-mark-commandC-@ or C-SPACEMark the beginning (or end) of a region.
shell-send-eofC-c C-dEnd of file character.
shrink-window(none)Make window shorter.
shrink-window-horizontallyC-x {Make window narrower.
spell-buffer(none)Check spelling of current buffer.
spell-region(none)Check spelling of current region.
spell-string(none)Check spelling of string typed in minibuffer.
spell-wordM-$Check spelling of word after cursor.
split-lineM-C-oSplit line at cursor; indent to column of cursor.
split-window-horizontallyC-x 2Divide current window horizontally into two.
split-window-verticallyC-x 5Divide current window vertically into two.
start-kbd-macroC-u C-x (Execute last macro defined, then add keystrokes to it.
start-kbd-macroC-x (Start macro definition.
stop-shell-subjobC-c C-zSuspend current job.
suspend-emacsC-zSuspend emacs (use exit or fg to restart).
switch-to-bufferC-x bMove to the buffer specified.
switch-to-buffer-other- windowC-x 4 bSelect a buffer in the other window.
text-mode(none)Exit indented text mode; return to text mode.
transpose-charsC-tTranspose two letters.
transpose-linesC-x C-tTranspose two lines.
transpose-paragraphs(none)Transpose two paragraphs.
transpose-sentences(none)Transpose two sentences.
transpose-wordsM-tTranspose two words.
unexpand-abbrev(none)Undo the last word abbreviation.
universal-argumentC-u nRepeat the next command n times.
upcase-regionC-x C-uUppercase region.
upcase-wordM-uUppercase word.
view-emacs-newsC-h nView news about updates to emacs.
view-lossageC-h lWhat are the last 100 characters I typed?
where-isC-h wWhat is the key binding for this command?
write-abbrev-file(none)Write the word abbreviation file.
write-fileC-x C-wWrite buffer contents to file.
yankC-yRestore what you've deleted.


Previous: 7.3 Summary of Commands by KeyUNIX in a Nutshell: System V EditionNext: 8. The Vi Editor
7.3 Summary of Commands by KeyBook Index8. The Vi Editor

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