Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Emacs Cs

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

�e Big EMACS Cheatsheet input.

input. If you want the shell to replace the region M-b | C-LeftArrow backward-word Delete the character before point.
For version 25 text with the output from the shell command, use Move point backward to the previous word. C-d delete-char
C-u M-|. C-v | PgDn scroll-up Delete the character at point.
Command line options Scroll the text upward by a screen. M-d kill-word
Buffer and �les functions
--visit=<filespec> | --file=<filespec> M-v | PgUp scroll-down Delete the characters from point forward to the
C-x C-f �nd-�le
| <filespec> Scroll the text downward by a screen. end of the word.
Visit a �le.
Open �lespec into individual buffers for editing. C-Home beginning-of-buffer M-Backspace | M-Del backward-kill-word
C-x C-s save-buffer
+row[:column] Move point to the beginning of the buffer. (On Delete the characters from point backward to the
Save current buffer to disk.
Move point to line number row and (optional) some versions, this key is de�ned by default to beginning of the word.
horizontal position column in the �le (default is C-x C-w write-�le
move to the beginning of the current line.) C-_ undo
+1:1). Ask for a �lename and write the current buffer
C-End end-of-buffer Undo your last typing or action. To redo just
with that name. Like the command "Save as ..."
--insert <file> Move point to the end of the buffer. (On some undo the last undo (!).
on other editors.
Insert �le at the beginning of the buffer. versions, this key is de�ned by default to move to C-x z repeat
C-x s save-some-buffers
--load <file> | -l <file> the end of the current line.) Repeat most recently executed command.
Ask about saving all unsaved buffers to disk.
Execute the Emacs Lisp instructions in �le. Home | C-a beginning-of-line C-x M-: | C-x M-ESC repeat-complex-command
C-x C-c save-buffers-kill-emacs
--g <dimensions> | --geometry Move point to the beginning of the line. Edit and re-evaluate last complex command. A
Ask about saving all unsaved buffers to disk and
<dimensions> End | C-e end-of-line complex command is one which used the
exit Emacs.
Set the window's width, height, and position Move point to the end of the line. minibuffer. �e command is placed in the
according to the given X window dimensions (the C-x C-z | C-z suspend-emacs
M-a beginning-of-sentence minibuffer as a Lisp form for editing. �e result
default is to make the window 80x40 characters). Suspend Emacs and make it a background
Move point to the beginning of the sentence. is executed, repeating the command as changed.
process (press fg | fg %emacs to awake it back.
-nw | --no-windows M-e end-of-sentence C-q[CHAR] or [NUM] quoted-insert
In X, don't use an X client window, but open in C-x b Switch-to-buffer
Move point to the end of the sentence. Insert, at point, the literal character keypress or
the current terminal window instead. �is option Display buffer BUFFER-OR-NAME in the selected
C-{ beginning-of-paragraph the character whose octal value is XXX.
doesn't affect console sessions. window.
Move point to the beginning of the paragraph. C-u[NUM][COMMAND] universal-argument
C-x C-b list-buffers
C-} end-of-paragraph Execute command a total of number (default 4)
Pre�xes List all buffers.
Move point to the end of the paragraph. times in succession.
C-c C-x k kill-buffer
Commands particular to the current editing Kill a buffer (the current buffer, by default). Functions for marking and killing text
Navigating over balanced expressions
mode C-x C-q vc-toggle-read-only C-M-n C-Space set-mark-command
forward-list
C-x Toggle read-only status on the current buffer Move forward over a parenthetical group. Set the mark at point.
Commands for �les and buffers (and perform version control if applicable). C-k kill-line
C-M-p backward-list
C-h C-x i insert-�le Move backward over a parenthetical group. Kill all text from point to the end of the line.
Help commands Insert the contents of a �le at point. C-w kill-region
C-M-f forward-sexp
M-x Move forward over a balanced expression. Kill the region.
Literal function name Movement and navigation
backward-sexp M-w kill-ring-save
M-! shell-command C-p | UpArrow previous-line C-M-b
Move backward over a balanced expression. Save the region in the kill ring, but don't kill it.
Execute external shell command from within Move point up to the previous line.
kill-sexp C-y yank
Emacs.�e output from the shell command is C-n | DownArrow next-line C-M-k
Kill balanced expression forward. Yank text from the kill ring.
displayed in the minibuffer or in a separate buffer, Move point down to the next line.
C-f | RightArrow forward-char C-M-SPC mark-sexp
Commands for using rectangles
depending on the output size. When used with a
Move point forward to the next character. Put the mark at the end of the sexp. C-space set-mark-command
pre�x argument (e.g, C-u M-!), the shell-
command output is inserted in the current buffer C-b | LeftArrow back-char Common editing commands Marks one corner of a rectangle (point marks the
at point. Move point backward to the previous character. Ins overwrite-mode opposite corner).
M-| shell-command-on-region M-f | C-RightArrow forward-word Toggle overwrite mode (default is off ). C-x r k kill-rectangle
Provide the region text to the shell command as Move point forward to the next word. Backspace | Del delete-backward-char Kills the current rectangle and saves it in a special 1
rectangle buffer. Text mode key bindings letters. . any character (but newline)
C-x r d delete-rectangle Esc * previous character or group, repeated 0 or more
Pre�x for mode-speci�c commands Search and replace commands
Deletes the current rectangle and doesn't save it time
C-s [STRING] [C-w] [C-y] isearch-forward
for yanking. Esc Tab | M-Tab ispell-complete-word + previous character or group, repeated 1 or more
Incrementally search forward through the buffer
C-x r c clear-rectangle Esc S | M-S center-paragraph time
for string (default is the last search string you
Clears the current rectangle, replacing the entire Esc s | M-s center-line ? previous character or group, repeated 0 or 1
gave, if any); C-w uses the text from point
area with whitespace. time
Text manipulation commands forward to the end of the word and C-y uses
C-x r o open-rectangle everything from point to the end of the line. ^ start of line
Opens the current rectangle, �lling the entire area C-x C-i | C-x Tab indent-rigidly
C-r [STRING] [C-w] [C-y] isearch-backward $ end of line
with whitespace and moving all text from the �is command indents lines in the region (or at
point). Incrementally search backward through the [...] any character between brackets
rectangle to the right. any character not in the brackets
�ll-region buffer for string (default is the last search string [^..]
C-x r y yank-rectangle you gave, if any); C-w uses the text from point [a-z] any character between a and z
Yanks the contents of the last-killed rectangle at �is command �lls all paragraphs in the region.
M-q �ll-paragraph forward to the end of the word, and C-y uses \ prevents interpretation of following special char
point, moving all existing text to the right. everything from point to the end of the line.
�is command �lls the single paragraph at point. \| or \w word constituent
Advanced mark and selection commands C-s Enter C-w [WORD OR word-search- \b word boundary
M-\ delete-horizontal-space
C-u C-space pop-to-mark-command PHRASE] forward character with c syntax (e.g. \s- for
�is command removes any horizontal space to \sc
Moves to the previous mark in the mark ring. Search forward through the buffer for the given whitespace char)
the right and left of point.
C-x C-x exchange-point-and-mark word or phrase, regardless of spacing.
C-o open-line \( \) start\end of group
Swaps the location of point and the mark. C-r Enter C-w [WORD OR word-search-
�is command opens a new line of vertical space \< start\end of word (faulty rendering: backslash
M-@ mark-word PHRASE] backward
below point, without moving point. \> + less-than and backslash + greater-than)
Marks all text from point to the end of the Search backward through the buffer for the given
C-t transpose-chars \_< \_> start\end of symbol
current word. word or phrase, regardless of spacing.
�is command transposes the single characters to \` \' start\end of buffer\string
M-h mark-paragraph C-M-s isearch-forward-regexp
the right and left of point. \1 string matched by the �rst group
Marks the current paragraph, regardless of the Incrementally search forward through the buffer
M-t transpose-words \n string matched by the nth group
location of point. for a given regular expression.
�is command transposes the single words to the \{3\} previous character or group, repeated 3
transient-mark-mode C-M-r isearch-backward-regexp
right and left of point. times
Toggles Transient Mark mode. Incrementally search backward through the
C-x C-t transpose-lines \{3,\} previous character or group, repeated 3 or
buffer for a given regular expression.
C-x h mark-whole-buffer �is command transposes the line at point with
replace-string more times
Marks the entire buffer, regardless of the location the line before it.
Search for a given string from point to the end of \{3,6\} previous character or group, repeated 3
of point. M-^ delete-indentation
the buffer and replace it with a given string. to 6 times
�is command joins the line at point with the
Advanced kill and yank commands replace-regexp \= match succeeds if it is located at point
previous line. Preface with C-1 to join the line at
[NUM] C-k kill-line Search for a given regular expression from point *?, +?, and ?? non-greedy versions of *, +, and ?
point with the next line.
Kills integer number of lines. If 0, kills from to the end of the buffer and replace it with a \ca ascii character
point to the beginning of the line; if negative, M-u uppercase-word
given string. \Ca non-ascii character (newline included)
kills in reverse (not sure for version 25). �is command converts the text at point to the
M-% query-replace \cl latin character
end of the word to uppercase letters.
M-k kill-sentence Search for a given string from point to the end of
M-l downcase-word \cg greek character
Kills from point to the end of the sentence. the buffer and, in each instance, query to replace
�is command converts the text at point to the [:digit:] a digit, same as [0-9] (\d is not
M-z zap-to-char it with a given string.
end of the word to lowercase letters. supported)
Zaps all text from point to the speci�ed character. C-M-% query-replace-regexp
C-x C-l downcase-region [:alpha:] a letter (an alphabetic character)
M-y yank-pop Search for a given regular expression from point
�is command converts the region to lowercase [:alnum:] a letter or a digit (an alphanumeric
Moves to the next slot in the kill ring. to the end of the buffer and, in each instance,
letters. character)
[NUM] C-y yank query to replace it with a given string.
C-x C-u upcase-region [:upper:] a letter in uppercase
Yanks the speci�ed slot in the kill ring.
�is command converts the region to uppercase Regular expressions [:lower:] a letter in lowercase 2
[:graph:] a visible character Re-builder abbrev-mode Jump to the location set in the bookmark named
[:print:] a visible character plus the space M-x re-b <RET> re-builder Toggles Abbrev mode; with a numeric argument, Bookmark.
character Start the RE Buider mode. it turns Abbrev mode on if the argument is bookmark-save
[:space:] a whitespace character, as de�ned by C-c C-q reb-quit positive, off otherwise. Save all bookmarks to the bookmark �le,
the syntax table, but typically [ \t\r\n Quit the RE Builder mode. C-x a g add-global-abbrev ~/.emacs.bmk.
\v\f ], which includes the newline C-c C-c reb-toggle-case De�ne an abbrev, using one or more words before
point as its expansion. Window-manipulation commands
character Toggle case sensitivity of searches for RE Builder
C-x 2 split-window-vertically
[:blank:] a space or tab character target buffer. C-x a l add-mode-abbrev
Split the current window in half across the
[:xdigit:] an hexadecimal digit C-c C-w reb-copy Similar, but de�ne an abbrev speci�c to the
middle, stacking the new buffers vertically.
[:cntrl:] a control character Copy current RE into the kill ring for later current major mode.
C-x 4 b switch-to-buffer-other-window
[:ascii:] an ascii character insertion. C-x a i g inverse-add-global-abbrev
Split the current window in half vertically,
\s- whitespace character C-c C-s reb-next-match De�ne a word in the buffer as an abbrev.
prompting for the buffer to use the bottom
Go to next match in the RE Builder target C-x a i l inverse-add-mode-abbrev
\sw word constituent window and making that the active window.
window. De�ne a word in the buffer as a mode-speci�c
\s_ symbol constituent C-x 4 C-o display-buffer
C-c C-r reb-prev-match abbrev.
\s. punctuation character Display a buffer in another window, prompting
Go to previous match in the RE Builder target M-' abbrev-pre�x-mark
\s( open delimiter character for the buffer to use the other window but
window. Separate a pre�x from a following abbrev to be
\s) close delimiter character keeping the current window active. (If only one
C-c C-i reb-change-syntax expanded.
\s" string quote character window exists, then split the window vertically to
Change the syntax used by the RE Builder. C-x a e expand-abbrev display the other buffer.)
\s\ escape character C-c C-e reb-enter-subexp-mode Expand the abbrev before point. �is is effective
C-x 4 f �nd-�le-other-window
\s/ character quote character Enter the subexpression mode in the RE Builder. even when Abbrev mode is not enabled.
Open a new �le in a new buffer, drawing it in a
\s$ paired delimiter C-c C-b reb-change-target-buffer expand-region-abbrevs new vertical window.
\s' expression pre�x Change the target buffer and display it in the Expand some or all abbrevs found in the region.
C-x 4 r �nd-�le-read-only-other-window
\s< comment starter target window. list-abbrevs Open a new �le in a new read-only buffer,
\s> comment ender C-c C-u reb-force-update Display a list of all abbrev de�nitions. With a drawing it in a new vertical window.
\s! generic comment delimiter Force an update in the RE Builder target window numeric argument, list only local abbrevs.
C-M-v scroll-other-window
\s| generic string delimiter without a match limit. edit-abbrevs Scroll to the window that would be the next one
Edit a list of abbrevs; you can add, alter or to switch to with C-x o.
Regex examples Registers commands remove de�nitions.
C-x r space X point-to-register scroll-all
[-+[:digit:]] digit or + or - sign M-/ dabbrev-expand
Save point to register X. Toggle the scroll-all minor mode. When it's on,
\(\+\|-\)?[0-9]+ decimal number (-2 or Expand the word in the buffer before point as a
C-x r s X copy-to-register all windows displaying the buffer in the current
\(\.[0-9]+\)? 1.5 but not .2 or 1.) dynamic abbrev, by searching for words starting
Save the region to register X. window are scrolled simultaneously and in equal,
\<\(\w+\) two consecutive, identical with that abbreviation. relative amounts.
+\1\> words C-x r r X copy-rectangle-to-register C-M-/ dabbrev-completion
Save the selected rectangle to register X. C-x o other-window
\<[[:upper:]]\w* word starting with an Complete the word before point as a dynamic Move the cursor to the next window, and make it
uppercase letter view-register abbrev. the active window.
+$ trailing whitespaces (note the starting SPC) View the contents of a given register.
Bookmarks commands C-x 0 delete-window
\w\{20,\} word with 20 letters or more C-x r j X jump-to-register
Move point to the location given in register X. C-x r m Bookmark bookmark-set Delete the current window, and move the cursor
\w+phony\> word ending by phony Set a bookmark named Bookmark. to the window that would be the next one to
C-x r i X insert-register
\(19\|20\)[0-9]\{2\} year 1900-2099 C-x r l bookmarks-bmenu-list switch to with C-x o.
Insert the contents of register X at point.
^.\{6,\} at least 6 symbols List all saved bookmarks. C-x 1 delete-other-windows
^[a-zA-Z0-9_]\ decent string for a user Abbreviations bookmark-delete Delete all windows except the current window.
{3,16\}$ name (setq-default abbrev-mode t) Delete a bookmark. C-x 4 0 kill-buffer-and-window
<tag[^> C-q C-j ]*>\(.*?\)</tag> html tag Write this into .emacs to switch abbrev minor C-x r b Bookmark Delete the current window, and kill its buffer.
bookmark-jump 3
mode on at start-up. C-x 3 split-window-horizontally
Split the current window in half down the Start the Emacs shell. M-q �ll-paragraph user's workstation, in degrees; the default value is
middle, stacking the new buffers horizontally. Reformat the paragraph containing the cursor. nil.
Interactive Highlighting
follow-mode C-c C-x nxml-insert-xml-declaration calendar-longitude
C-x w h [regexp] <RET> [face] highlight-
Toggle follow, a minor mode. When it's on in a Inserts an XML processing instruction at the top Contains the longitude value for the location of
<RET> regexp
buffer, all windows displaying the buffer are of the �le. the user's workstation, in degrees; the default
Highlight text that matches regexp using face
connected into a large virtual window. M-C-f forward-sexp value is nil.
face. �e highlighting will remain as long as the
C-x ^ enlarge-window Move forward over tag. calendar-location-name
buffer is loaded.
Make the current window taller by a line; M-C-b backward-sexp Contains the value for the location name (such as
C-x w r [regexp] <RET> unhighlight-regexp
preceded by a negative, this makes the current Move backward over tag. city, state, and country) for the location of the
Unhighlight regexp.
window shorter by a line. M-C-n nxml-forward-element user's workstation; the default value is nil.
C-x w l [regexp] <RET> highlight-lines-
C-x } shrink-window-horizontally Move the cursor to the end of the next element. colon-double-space
[face] <RET> matching-regexp
Make the current active window thinner by a M-C-p nxml-backward-element If not set to nil, commands for �lling text insert
Highlight entire lines containing a match for
single column. Move the cursor before the previous element. two spaces after a colon instead of one. �e
regexp, using face face.
C-x { enlarge-window-horizontally M-C-d nxml-down-element default value is nil.
Make the current active window wider by a single nXML mode Move the cursor to the next included element command-line-args
column. M-x nxml-mode after point, to a position just after the start tag; d Contains the list of arguments used in the
C-x - shrink-window-if-larger-than-buffer Start the nXml mode. is for “down.” command line that executed the current Emacs
Reduce the current active window to the smallest C-c C-n rng-next-error M-C-u nxml-backward-up-element session.
possible size for the buffer it contains. Move to the next location where the document Move the cursor to a position just before the start command-line-default-directory
C-x + balance-windows structure is not valid. tag of the element containing point; u is for “up.” Contains the path name of the directory from
Balance the size of all windows, making them C-c C-v rng-validate-mode C-c C-o C-d nxml-hide-subheadings which the current Emacs session was executed.
approximately equal. Turn validation on or off. If validation is turned Hide the children of the current element, as in compare-ignore-case
compare-windows on, in the status line's mode area you will see emacs outline-mode. If not set to nil, Emacs ignores differences in
Compare the current window with the next either “nXML Valid” or “nXML Invalid”. If C-c C-o C-s nxml-hide-subheadings uppercase and lowercase letters when running the
window, beginning with point in both windows validation is turned off, neither word will appear Reverses the action of C-c C-o C-d, revealing the compare-windows function, as described in �fth
and moving point in both buffers to the �rst after “nXML” in the mode line. children of the current element. installment of this series (see Resources). �e
character that differs until reaching the end of the tab indent-for-tab-command default value is nil.
buffer. Indent the current line according to the level of Managing variables con�rm-kill-emacs
nested block tags. �e indentation is two spaces set-variable If set to nil, Emacs doesn't ask for a con�rmation
Shell commands Ask for a variable to change and for the needed when exiting; otherwise, the exit veri�cation
per level.
M-! <cmd> shell-command value. might be customized as an Emacs Lisp function
M-C-\ indent-region
Run the shell command line cmd and display the auto-mode-alist such as y-or-n-p. �e default value is nil.
Indent all the lines in the region using the same
output. If set to nil, automatic selection of major mode
process as for tab. default-justi�cation
M-| <cmd> shell-command-on-region based on �le name extension is turned off. Its Sets the default justi�cation style. �e value can
C-c C-f nxml-�nish-element
Run the shell command line cmd with region default value is a list of �le name extensions and be one of left, right, center, full, or none. �e
Insert an end tag for whatever element the cursor
contents as input; optionally replace the region corresponding modes. default value is left.
is in.
with the output. auto-save-default
C-c C-i nxml-balanced-close-start-tag-inline default-major-mode
shell If not set to nil, Emacs automatically saves a Selects the default major mode for new �les or
�is command adds the closing “>” and an end
Run a subshell with input and output through an changed buffer to its corresponding �le at preset buffers. �e default value is fundamental-mode.
tag, and then places the cursor between the tags
Emacs buffer. You can then give commands intervals. Its default value is t.
so you can type the content. display-time-24hr-format
interactively. auto-save-interval
C-c C-b nxml-balanced-close-start-tag-block If set to t, Emacs displays time in 24-hour
term Contains the number of character changes after military format, instead of the standard 12-hour
Adds the closing “>”, then a blank line, then an
Run a subshell with input and output through an which Auto-save mode, if true, is invoked; the format with AM or PM suffix. �e default value
end tag on yet another separate line. �e cursor is
Emacs buffer. You can then give commands default value is 300. is nil.
left indented at the proper level on the central
interactively. Full terminal emulation is available.
blank line. calendar-latitude display-time-day-and-date 4
eshell Contains the latitude value for the location of the
If not set to nil, Emacs displays time with the Contains the value for the side of the Emacs and other characters. When point is on one of <command prefix> or <keystroke> C-h
current day of the week, current month, and frame on which to place the scroll bar: right or the paired characters, the other is highlighted. �is command describes all the possible
current day of the month, instead of just the hour left. If set to nil, the scroll bar is turned off. �e menu-bar-mode commands and functions available for the given
and minute. �e default value is nil. default value is left. Toggle the display of the Emacs menu bar. �e <command prefix> or <keystroke>.
�ll-column scroll-step default value is t. C-h c <keystroke> describe-key-brie�y
Contains the number for the column on each line Contains the number of lines to move through sunrise-sunset �is command reports in the minibuffer the
where text begins to be �lled to the next line. �e the buffer lines with the scroll-down and scroll-up Display the time of today's sunrise and sunset for name of function that <keystroke>is bound to.
default value is 70. functions (which are bound to the PgDn and the current geographic location. If preceded with C-h k <keystroke> describe-key
initial-major-mode PgUp keys by default). If set to 0, Emacs centers the universal-argument, this function �is command opens a new help-buffer window
Speci�es the major mode to use for the *scratch* point in the middle of the window when prompts for a speci�c day. that describes the function that <keystroke> is
buffer on startup. �e default value is lisp- scrolling. tool-bar-mode bound to.
interaction-mode. show-trailing-whitespace Toggle the display of the Emacs toolbar. �e C-h l view-lossage
inverse-video If not set to nil, Emacs makes any whitespace at default value is t. �is command opens a new buffer and displays
If not set to nil, Emacs inverts the display colors, the end of lines in the current buffer visible. �e the last 100 characters typed.
if possible. �e default value is nil. default value is nil. Customize functions
open-dribble-�le
visible-bell customize-changed-options <Enterversion>
kill-ring �is command opens a speci�ed �le and dribbles
If not set to nil, Emacs makes the frame blink Open a new customization buffer for all faces,
Contains the contents of the Emacs kill ring. a copy of all keyboard input to that �le.
instead of ringing the audible system bell. �e options, or groups that have been changed since
kill-ring-max apropos
default value is nil. the version of Emacs given by version.
Sets the number of allowable entries in the �is command gives a list of apropos commands
x-cut-buffer-max customize-customized
Emacs kill ring. �e default value is 60. and variables to a given regexp.
Sets the maximum number of characters from the Open a new customization buffer for all options
kill-whole-line C-h a <regexp> command-apropos
kill ring that are also stored in the X Window and faces that have already been customized but
If not set to nil, the kill-line function (bound to �is command gives a list of apropos commands
System cut buffer. �e default value is 20000. haven't been saved to disk.
C-k) kills the current line and its trailing newline to regexp.
customize-face <Enter> <regexp>
character, if the function is executed at the very C-h b describe-bindings
Interface functions Open a new customization buffer for all the face,
beginning of the line. �e default value is nil. �is command describes all the valid key
column-number-mode option, or groups relevant to the regular
make-backup-�les Toggle the display, in the mode line, of the bindings for the current major mode in a new
expression given by <regexp>.
If not set to nil, Emacs saves a backup of a buffer current column the cursor is at, preceded by a C. help buffer window.
customize-face <Enter> <face>
before any changes are made to a �le of the same �e default value is nil. C-h f <function> describe-function
Open a new customization buffer for the face
name but with a tilde character (~) appended to �is command describes the purpose of
display-time name given by <face>.
the end. <function> in a new help buffer window.
Toggle the display of the current time in the customize-group <Enter> <group>
mark-ring mode line. �e default value is nil. C-h v <variable> describe-variable
Open a new customization buffer for the group
Contains the contents of the current mark ring of �is command describes the purpose of
font-lock-mode name given by <group>.
the buffer. <variable> in a new help buffer window.
If not set to nil, Emacs turns on the Font Lock customize-option <Enter> <option>
mark-ring-max mode automatically for the current buffer. �e C-h w <function> where-is
Open a new customization buffer for the option
Contains the number of allowable entries in the default value is nil. �is command describes which keyboard binding
name given by <option>.
mark ring. �e default value is 16. (if any) a particular <function> is bound to.
global-font-lock-mode customize-saved
mouse-avoidance-mode If not set to nil, Emacs turns on the Font Lock C-h s | F1 s describe-syntax
Open a new customization buffer for all faces and
Contains a value describing the type of mouse- mode automatically for all buffers. �e default Display the Emacs Syntax Table for the current
options that you've changed with the Customize
avoidance mode. �e default value is nil. value is nil. mode (useful for the matching parentheses
function.
next-line-add-newline line-number-mode commands).
If not set to nil, Emacs adds a new line whenever Toggle the display, in the mode line, of the Help commands
the down arrow is pressed at the end of the INFO commands
current line the cursor is at, preceded by an L. Tab
buffer. �e default value is nil (in more recent H Info-help
�e default value is t. �is command performs command completion if
versions of Emacs). �is command opens a hands-on Info tutorial in
show-paren-mode given as part of a command, showing all possible
a new buffer. 5
scroll-bar-mode Allows one to see matching pairs of parentheses input values for the given command.
Q Info-exit
�is command moves to the last buffer you last cross reference. butterfly command, a command added to Conway’s Game of Life is a famous example of
visited, putting the *info* buffer in the end of Emacs as an homage to the XKCD strip at cellular automata. �e Emacs version comes with
the buffer list. Documentation �les www.xkcd.com/378/ a handful of starting patterns that you can
C-h C-d describe-distribution (programmatically with elisp) alter by adjusting
<Enter> blackbox
File DISTRIB: Information on obtaining a copy the life-patterns variable.
�is command follows the cross reference at or �e object of the game is to �nd four hidden
of the latest distribution of the Emacs software
near point. balls by shooting rays into the black box. �ere pong | snake | tetris
C-h F view-emacs-faq are four possibilities: 1) the ray will pass thru the �ese classic games are all implemented using the
N Info-next
/usr/share/info/; emacs- box undisturbed, 2) it will hit a ball and be Emacs package gamegrid, a generic framework
�is command moves to the current node's Next
mainversion/efaq.gz Emacs FAQ absorbed, 3) it will be de�ected and exit the box, for building grid-based games like Tetris and
node.
C-h C-c describe-copying or 4) be de�ected immediately, not even being Snake.
P Info-prev
File COPYING: GNU General Public License allowed entry into the box. solitaire
�is command moves to the current node's
(GNU GPL) bubbles It is a peg-based game where you have to end up
Previous node.
C-h C-w describe-no-warranty You must clear out as many “bubbles” as you can with just one stone on the board, by taking a
U Info-up
File COPYING: Section "NO WARRANTY" of in as few moves as possible. When you remove stone (the o) and “jumping” over an adjacent
�is command moves to the current node's Up
the GNU General Public License (GNU GPL) bubbles the other bubbles drop and stick stone into the hole (the .), removing the stone
node.
C-h n view-emacs-news together. You can con�gure the difficulty of the you jumped over in the process. Rinse and repeat
D Info-directory
File NEWS: News concerning the latest changes in game by calling M-x bubbles-set- until the board is empty. �ere is a handy solver
�is command moves to the Directory node.
the current version of Emacs game-<difficulty> where <difficulty> is one built in called M-x solitaire-solve if you get
L Info-last
C-h P view-emacs-problems of: easy, medium, difficult, hard, or stuck.
�is command moves to the last node you visited.
File PROBLEMS: Emacs problems �le userdefined. Furthermore, you can alter the zone
T Info-top-node
C-h C-p describe-project graphics, grid size and colors using Customize: A series of screensavers. Type M-x zone and
�is command moves to the Top node of the
File THE-GNU-PROJECT: Essay by Richard M-x customize-group bubbles. watch what happens to your screen! You can
current document.
Stallman concerning the founding of the GNU decipher con�gure a screensaver idle time by running M-x
> Info-�nal-node
Project It’s a (very complex) package to help you break zone-when-idle (or calling it from elisp) with
�is command moves to the �nal node pointed to
C-h t help-with-tutorial simple substitution ciphers (like cryptogram an idle time in seconds. You can turn it off with
in the current document.
File TUTORIAL: Hands-on tutorial for learning puzzles) using a helpful user interface. M-x zone-leave-me-alone.
<Spacebar> Info-scroll-up
the basics of Emacs dissociated-press mpuz
�is command moves forward in the current
It's a semi-randomizing algorithm that takes your A multiplication puzzle where you have to replace
node by a single screen; if at the end of the node, �ings you should never know about buffer, runs it through a blender, and displays the the letters with numbers and ensure the numbers
then move to the Next node. hanoi result. add (multiply?) up. You can run M-x mpuz-
<Backspace> Info-scroll-down �e hanoi tower, with a default of 3 discs; M-x show-solution to solve the puzzle if you get
doctor
�is command moves backward in the current hanoi-unix and M-x hanoi-unix-64 uses the stuck.
Based on the original ELIZA, the “Doctor” tries
node by a single screen; if at the beginning of the unix timestamp, making a move each second in
to psychoanalyze what you say and attempts to morse-region
node, then move to the Previous node. line with the clock, and with the latter pretending
repeat the question back to you. It simulates a Translates a region into morse code. Undo (C-
B beginning-of-buffer it uses a 64-bit clock.
Rogerian psychotherapist and uses rules, dictated S-_) or M-x unmorse-region to unmorse.
�is command goes to the beginning of the 5x5 into a script, to respond with non-directional
current node. You are given a 5x5 grid with a central cross questions to user inputs.
S Info-search already �lled-in; your goal is to �ll all the cells by Copyright (C) 2017 Pete Za Sayari
dunnet <petezasayari@gmail.com>
�is command searches forward in the current toggling them on and off in the right order to
Emacs’s very own Zork-like text adventure game.
Info document for a given regexp. win. With an optional digit argument you can Released under the terms of the GNU General Public License
change the size of the grid. gomoku version 3 or later.
Tab Info-next-reference You have to connect 5 squares, tic-tac-toe style.
animate-birthday-present For more Emacs documentation see the Emacs distribution or
�is command moves the cursor forward to the You can customize the group gomoku to adjust http://www.gnu.org/software/emacs
�rst cross reference. A fancy birthday present animation.
the size of the grid. �e last version of the cheatsheet so as the XML-XSLT source is
M-Tab Info-prev-reference butter�y at https://github.com/PeteZaSayari/emacs-cs.
life
�is command moves the cursor backward to the �e animate package is also used by M-x
6

You might also like