Emacs Tricks and Reference Card

2015-03-15
OTH

Tricks

  1. M-x eww 浏览网页
  2. M-x dictionary-word 和 dictionary-mode 查词,不过不好用
  3. M-x flyspell-mode 用flyspell前端配合Aspell做拼写检查
  4. auto-complete 自动补全
  5. M-x slime cl的REPL等
  6. M-x run-scheme scheme的REPL等,包括F1自动运行本文件中的代码
  7. 高级 Emacs 文本操作
  8. M-x ediff比较文件
  9. magit使用git
  10. hs-minor-mode折叠代码
  11. ido 在minibuffer区的候选列表 C-r 上一个 C-s 下一个
  12. 修改过的 .emacs 文件马上生效, 可以用 M-x eval-current-buffer

Introduction

Click here to download my emacs configuration.

Features

  • Multi-language support, multi-platform

  • Handy splited window control (C-x o a~z; M-1~9)

  • Friendly to new emacsers, customizable, productive

  • Integrated with many useful developing tools (magit, slime, etc.)

  • Magical theme the matrix

Future Features

  • Completely integrate Haskell, Scheme, Common Lisp, Erlang developing tool chains

  • Emacs CheatSheet

Supported Language

  • Ruby / Clojure / Python / Haskell

  • Erlang / Lisp / Mozart Oz / Coq

  • Js / Coffeescript / PHP / Html

  • CSS / LESS / SASS / SCSS

  • HAML / Markdown / Textile / ERB

Change Log

  • 2017-8-14, v0.9.9: Supporting Proof General, Mozart Oz

  • 2017-7-31, v0.1.1: New theme The Matrix

  • 2017-7-16, v0.1.1: Supporting windows-numbering.el.

  • 2017-7-15, v0.1: Mix serval configuration with Purcell’s .emacs.d.

Prerequisites

  1. When programming with Haskell, you need to install Haskell syntax checking tool Stack (and GHC 8.0.2 +). Run:

# Install Stack

wget -qO- https://get.haskellstack.org/ | sh

# Install Haskell

stack setup --install-ghc

This GHC will not replace former versions.

Warning : Lacking of Stack will cause Emacs fail to respond for seconds when editing .hs files.

  1. Proof-general for Coq (or others).

Proof-general is already exists in “~/.emacs.d/site-lisp/”. You should indicate the Coq path on Windows.

  1. Mozart-Oz. You can find Mozart-Oz on its Official Website.

If you are installing an rpm package (only i386 version is avaliable), you need to convert it to amd64 version.

After installation, you can weak up Mozart Oz by:

M-x run-oz

Or change current mode to oz-mode by:

M-x oz-mode

Cheatsheets

Basic
Minimize C-z Exit Emacs C-x C-c
Run command M-x
File
Read a file C-x C-f Save a file C-x C-s
Toggle read-only status C-x C-q Save all files C-x s
Replace this file with.. C-x C-v Save as.. C-x C-w
Buffer
Switch to buffer.. C-x b List all buffers C-x C-b
Insert a file to buffer C-x i Kill buffer C-x k
Kill some buffers M-x kill-some-buffers Last/Next buffer C-x ←/→
Minibuffer
Auto Complete TAB Complete and execute RET
Fetch previous input M-p Fetch later input M-n
Regexp backward/forward search through history M-r M-s
Abort minibuffer C-g Redo last command C-x Esc Esc
Error Recovery
Recover file M-x recover-session Undo tree C-x u
Restore buffer M-x revert-buffer Undo once C-/ or C-_
Windows
Delete all other windows C-x 1 Delete current window C-x 0
Split horizontally C-x 2 Split vertically C-x 3
Scroll other window C-M-v Switch to <a-z> C-x o <a-z>
Switch to <1-9> M-<1-9> Find file in other window C-x 4 f
Open buffer in other window C-x 4 b
Marking
Set mark point C-@ Exchange point and mark C-x C-x
Mark word by word M-@ Mark paragraph M-h
Mark page C-x C-p Mark sexp C-M-@
Mark function C-M-h Mark entire buffer C-x h
Copy and Paste
Cut region to kill ring C-w Copy region to kill ring M-w
Cut through next char M-z <char> Paste (yank back) C-y
Replace last paste (yank) with previous kill M-y
Transpose
Transpose characters C-t Transpose words M-t
Transpose lines C-x C-t Transpose sexps C-M-t
Case Change
Uppercase word M-u Lowercase word M-l
Capitalize word M-c Uppercase region C-x C-u
Lowercase region C-x C-l
Cursor Motion
Operation
Move Delete
Amount Forward Backward Forward Backward
Characters C-f C-b C-d DEL
Words M-f M-b M-d M-DEL
Lines C-n C-p C-k (to EOL) C-SPC C-a C-w
Sentences M-e M-a M-k C-x DEL
Expressions C-M-f C-M-b C-M-k C-M-DEL
Section C-M-a C-M-e
Paragraphs M-} M-{
Screen M-v C-v
End or Start of
Line C-e C-a
Buffer M-> M-<
Defun C-M-a C-M-e
Special Motion
Go to line M-g g
Go to Char M-g c
Back to indentation M-m
Scroll current line to center/top/bottom C-l
Search
Search forward C-s Search backward C-r
Regexp forward C-M-s Regexp backward C-M-r
Replace
Start query replace M-% Query replace word C-u M-%
Query replace by regexp M-x query-replace-regexp Replace once y
Skip once n Replace all !
Back up to previous match ^ Exit query Replace RET
Help
Tutorial C-h t Search command by word C-h a
Describe bindings C-h b Describe keys C-h k
Describe functions C-h f Find function on keys C-h K
Get mode information C-h m Describe packages C-h P
Programming
Toggle node C-, Comment a region C-M-;
Insert comment line M-; Find next error C-x '
Start a shell in a window C-x t Start slime C-x j
Toggle <xxx>-mode M-x <xxx>-mode Compile window M-x compile
Shell
Execute a shell command M-! Execute asynchronously M-&
Run command on a region M-| filter a region through a command C-u M-|
Paredit
Before After Key
(foo (bar |baz) quux zot) (foo (bar |baz quux) zot) C-<right>
(foo (bar |baz quux) zot) (foo (bar |baz) quux zot) C-<left>
(foo bar (baz| quux) zot) (foo (bar baz| quux) zot) C-M-<left>
(foo (bar baz |quux) zot) (foo bar (baz |quux) zot) C-M-<right>
Ediff
Start ediff M-x ediff Suspend/Quit z/q
Move Around
Pervious diff p or DEL Next diff n or SPC
Jump to diff j Goto X's point gx
Recenter C-l Scroll up/down v/V
Scroll lt/rt </> Swap Variants ~
Toggle Features
Vert/Horiz split | Highlighting h
Auto-refinement @ Ignore whitespaces ##
Ignore case #c Focus/hide regions #f/#h
read-only in buf X X wide display m
Manipulate
Copy A/B's region to B/A a/b Restore buf X's old diff rx
Refine current region * Update diff regions !
Save buf x wx Save diff output wd
System
Show registry R Diff output D
Status information i Compare regions =

Mode Guide

Mode NameIn basic mode?Official Intro
Anzuminor-mode which display search information in mode-line.
Async-Bytecomp-PackageAsync-Bytecomp-Package minor mode (no indicator):Byte compile asynchronously异步的 packages installed with package.el.Async compilation of packages can be controlled by‘async-bytecomp-allowed-packages’.
Auto-Compile
Auto-Compile-On-LoadBefore loading a library recompile it if it needs recompilation.A library needs to be recompiled if the source file is newer thanit’s byte-compile destination.  Without this advice the outdatedbyte code file would be loaded instead.
Auto-Compile-On-SaveToggle Auto-Compile mode in all buffers.With prefix ARG, enable Auto-Compile-On-Save mode if ARG is positive;otherwise, disable it.  If called from Lisp, enable the mode ifARG is omitted or nil.Auto-Compile mode is enabled in all buffers where‘turn-on-auto-compile-mode’ would do it.See ‘auto-compile-mode’ for more information on Auto-Compile mode.
Auto-Compositionfundamental Toggle Auto Composition mode.With a prefix argument ARG, enable Auto Composition mode if ARGis positive, and disable it otherwise.  If called from Lisp,enable the mode if ARG is omitted or nil.When Auto Composition mode is enabled, text characters areautomatically composed by functions registered in‘composition-function-table’.You can use ‘global-auto-composition-mode’ to turn onAuto Composition mode in all buffers (this is the default).
Auto-Compressionfundamental Toggle Auto Compression mode.With a prefix argument ARG, enable Auto Compression mode if ARGis positive, and disable it otherwise.  If called from Lisp,enable the mode if ARG is omitted or nil.Auto Compression mode is a global minor mode.  When enabled,compressed files are automatically uncompressed for reading, andcompressed when writing.
Auto-Encryptionfundamental Toggle automatic file encryption/decryption (Auto Encryption mode).With a prefix argument ARG, enable Auto Encryption mode if ARG ispositive, and disable it otherwise.  If called from Lisp, enablethe mode if ARG is omitted or nil.(fn &optional ARG)
Auto-Revert
Blink-CursorToggle cursor blinking (Blink Cursor mode).With a prefix argument ARG, enable Blink Cursor mode if ARG ispositive, and disable it otherwise.  If called from Lisp, enablethe mode if ARG is omitted or nil.If the value of ‘blink-cursor-blinks’ is positive (10 by default),the cursor stops blinking after that number of blinks, if Emacsgets no input during that time.See also ‘blink-cursor-interval’ and ‘blink-cursor-delay’.This command is effective only on graphical frames.  On text-onlyterminals, cursor blinking is controlled by the terminal.(fn &optional ARG)
Bug-Reference-Prog
Column-Number Toggle column number display in the mode line (Column Number mode).With a prefix argument ARG, enable Column Number mode if ARG ispositive, and disable it otherwise.If called from Lisp, enable the mode if ARG is omitted or nil.(fn &optional ARG)
Company "complete anything"; is an in-buffer completion framework.Completion starts automatically, depending on the values‘company-idle-delay’ and ‘company-minimum-prefix-length’.Completion can be controlled with the commands:‘company-complete-common’, ‘company-complete-selection’, ‘company-complete’,‘company-select-next’, ‘company-select-previous’.  If these commands arecalled before ‘company-idle-delay’, completion will also start.Completions can be searched with ‘company-search-candidates’ or‘company-filter-candidates’.  These can be used while completion isinactive, as well.The completion data is retrieved using ‘company-backends’ and displayedusing ‘company-frontends’.  If you want to start a specific backend, callit interactively or use ‘company-begin-backend’.By default, the completions list is sorted alphabetically, unless thebackend chooses otherwise, or ‘company-transformers’ changes it later.regular keymap (‘company-mode-map’):key             binding---             -------ESC             Prefix CommandM-/             company-completekeymap during active completions (‘company-active-map’):key             binding---             -------C-g             company-abortC-h             company-show-doc-bufferTAB             company-complete-commonRET             company-complete-selectionC-n             company-select-nextC-p             company-select-previousC-s             company-search-candidatesC-w             company-show-locationESC             Prefix Command<down>          company-select-next-or-abort<down-mouse-1>  ignore<down-mouse-3>  ignore<f1>            company-show-doc-buffer<mouse-1>       company-complete-mouse<mouse-3>       company-select-mouse<remap>         Prefix Command<return>        company-complete-selection<tab>           company-complete-common<up>            company-select-previous-or-abort<up-mouse-1>    ignore<up-mouse-3>    ignore<remap> <scroll-down-command>   company-previous-page<remap> <scroll-up-command>     company-next-pageC-M-s           company-filter-candidatesESC ESC         Prefix CommandM-/             company-select-nextM-0 .. M-9      company-complete-numberM-n             company-select-nextM-p             company-select-previousM-ESC ESC       company-abort(fn &optional ARG)
Company-Quickhelp Toggle Company-Quickhelp-Local mode in all buffers.With prefix ARG, enable Company-Quickhelp mode if ARG is positive;otherwise, disable it.  If called from Lisp, enable the mode ifARG is omitted or nil.Company-Quickhelp-Local mode is enabled in all buffers where‘company-quickhelp-local-mode’ would do it.See ‘company-quickhelp-local-mode’ for more information on Company-Quickhelp-Local mode.
Company-Quickhelp-Local Provides documentation popups for ‘company-mode’ using ‘pos-tip’.
Counsel Toggle Counsel mode on or off.Turn Counsel mode on if ARG is positive, off otherwise. Counselmode remaps built-in emacs functions that have counselreplacements.
Cua Toggle Common User Access style editing (CUA mode).With a prefix argument ARG, enable CUA mode if ARG is positive,and disable it otherwise.  If called from Lisp, enable the modeif ARG is omitted or nil.CUA mode is a global minor mode.  When enabled, typed textreplaces the active selection, and you can use C-z, C-x, C-c, andC-v to undo, cut, copy, and paste in addition to the normal Emacsbindings.  The C-x and C-c keys only do cut and copy when theregion is active, so in most cases, they do not conflict with thenormal function of these prefix keys.If you really need to perform a command which starts with one ofthe prefix keys even when the region is active, you have threeoptions:- press the prefix key twice very quickly (within 0.2 seconds),- press the prefix key and the following key within 0.2 seconds, or- use the SHIFT key with the prefix key, i.e. C-S-x or C-S-c.You can customize ‘cua-enable-cua-keys’ to completely disable theCUA bindings, or ‘cua-prefix-override-inhibit-delay’ to changethe prefix fallback behavior.
Delete-Selection Toggle Delete Selection mode.With a prefix argument ARG, enable Delete Selection mode if ARGis positive, and disable it otherwise.  If called from Lisp,enable the mode if ARG is omitted or nil.When Delete Selection mode is enabled, typed text replaces the selectionif the selection is active.  Otherwise, typed text is just inserted atpoint regardless of any selection.  Also, commands that normally deletejust one character will delete the entire selection instead.See ‘delete-selection-helper’ and ‘delete-selection-pre-hook’ forinformation on adapting behavior of commands in Delete Selection mode.(fn &optional ARG)
Desktop-Save Toggle desktop saving (Desktop Save mode).With a prefix argument ARG, enable Desktop Save mode if ARG is positive,and disable it otherwise.  If called from Lisp, enable the mode if ARGis omitted or nil.When Desktop Save mode is enabled, the state of Emacs is saved fromone session to another.  In particular, Emacs will save the desktop whenit exits (this may prompt you; see the option ‘desktop-save’).  The nexttime Emacs starts, if this mode is active it will restore the desktop.To manually save the desktop at any time, use the command ‘M-x desktop-save’.To load it, use ‘M-x desktop-read’.Once a desktop file exists, Emacs will auto-save it according to theoption ‘desktop-auto-save-timeout’.To see all the options you can set, browse the ‘desktop’ customization group.For further details, see info node ‘(emacs)Saving Emacs Sessions’.
Diff-Auto-Refine Toggle automatic diff hunk highlighting (Diff Auto Refine mode).With a prefix argument ARG, enable Diff Auto Refine mode if ARGis positive, and disable it otherwise.  If called from Lisp,enable the mode if ARG is omitted or nil.Diff Auto Refine mode is a buffer-local minor mode used with‘diff-mode’.  When enabled, Emacs automatically highlightschanges in detail as the user visits hunks.  When transitioningfrom disabled to enabled, it tries to refine the current hunk, aswell.
Diff-Hl
Electric-Indentfundamental Toggle on-the-fly reindentation (Electric Indent mode).With a prefix argument ARG, enable Electric Indent mode if ARG ispositive, and disable it otherwise.  If called from Lisp, enablethe mode if ARG is omitted or nil.When enabled, this reindents whenever the hook ‘electric-indent-functions’returns non-nil, or if you insert a character from ‘electric-indent-chars’.This is a global minor mode.  To toggle the mode in a single buffer,use ‘electric-indent-local-mode’.
Electric-Pair Toggle automatic parens pairing (Electric Pair mode).With a prefix argument ARG, enable Electric Pair mode if ARG ispositive, and disable it otherwise.  If called from Lisp, enablethe mode if ARG is omitted or nil.Electric Pair mode is a global minor mode.  When enabled, typingan open parenthesis automatically inserts the correspondingclosing parenthesis.  (Likewise for brackets, etc.). To togglethe mode in a single buffer, use ‘electric-pair-local-mode’.
File-Name-ShadowfundamentalToggle file-name shadowing in minibuffers (File-Name Shadow mode).With a prefix argument ARG, enable File-Name Shadow mode if ARGis positive, and disable it otherwise.  If called from Lisp,enable the mode if ARG is omitted or nil.File-Name Shadow mode is a global minor mode.  When enabled, anypart of a filename being read in the minibuffer that would beignored (because the result is passed through‘substitute-in-file-name’) is given the properties in‘file-name-shadow-properties’, which can be used to make thatportion dim, invisible, or otherwise less visually noticeable..
Flycheck
Flycheck-Color-Mode-Line
Font-LockfundamentalToggle syntax highlighting in this buffer (Font Lock mode).With a prefix argument ARG, enable Font Lock mode if ARG ispositive, and disable it otherwise.  If called from Lisp, enablethe mode if ARG is omitted or nil.When Font Lock mode is enabled, text is fontified as you type it: - Comments are displayed in ‘font-lock-comment-face’; - Strings are displayed in ‘font-lock-string-face’; - Certain other expressions are displayed in other faces   according to the value of the variable ‘font-lock-keywords’.To customize the faces (colors, fonts, etc.) used by Font Lock forfontifying different parts of buffer text, use M-x customize-face.You can enable Font Lock mode in any major mode automatically byturning on in the major mode’s hook.  For example, put in your~/.emacs: (add-hook 'c-mode-hook 'turn-on-font-lock)Alternatively, you can use Global Font Lock mode to automagicallyturn on Font Lock mode in buffers whose major mode supports itand whose major mode is one of ‘font-lock-global-modes’.  Forexample, put in your ~/.emacs: (global-font-lock-mode t)Where major modes support different levels of fontification, youcan use the variable ‘font-lock-maximum-decoration’ to specifywhich level you generally prefer.  When you turn Font Lock modeon/off the buffer is fontified/defontified, though fontificationoccurs only if the buffer is less than ‘font-lock-maximum-size’.To add your own highlighting for some major mode, and modify thehighlighting selected automatically via the variable‘font-lock-maximum-decoration’, you can use‘font-lock-add-keywords’.To fontify a buffer, without turning on Font Lock mode andregardless of buffer size, you can use M-x font-lock-fontify-buffer.To fontify a block (the function or paragraph containing point,or a number of lines around point), perhaps because modificationon the current line caused syntactic change on other lines, youcan use M-o M-o.You can set your own default settings for some mode, by setting abuffer local value for ‘font-lock-defaults’, via its mode hook.The above is the default behavior of ‘font-lock-mode’; you mayspecify your own function which is called when ‘font-lock-mode’is toggled via ‘font-lock-function’.
Global-Anzu Toggle Anzu mode in all buffers.With prefix ARG, enable Global Anzu mode if ARG is positive;otherwise, disable it.  If called from Lisp, enable the mode ifARG is omitted or nil.Anzu mode is enabled in all buffers where‘anzu--turn-on’ would do it.See ‘anzu-mode’ for more information on Anzu mode.
Global-Auto-Revert Toggle Global Auto Revert mode.With a prefix argument ARG, enable Global Auto Revert mode if ARGis positive, and disable it otherwise.  If called from Lisp,enable the mode if ARG is omitted or nil.Global Auto Revert mode is a global minor mode that reverts anybuffer associated with a file when the file changes on disk.  Use‘auto-revert-mode’ to revert a particular buffer.If ‘global-auto-revert-non-file-buffers’ is non-nil, this modemay also revert some non-file buffers, as described in thedocumentation of that variable.  It ignores buffers with modesmatching ‘global-auto-revert-ignore-modes’, and buffers with anon-nil vale of ‘global-auto-revert-ignore-buffer’.When a buffer is reverted, a message is generated.  This can besuppressed by setting ‘auto-revert-verbose’ to nil.This function calls the hook ‘global-auto-revert-mode-hook’.It displays the text that ‘global-auto-revert-mode-text’specifies in the mode line.
Global-Company Toggle Company mode in all buffers.With prefix ARG, enable Global Company mode if ARG is positive;otherwise, disable it.  If called from Lisp, enable the mode ifARG is omitted or nil.Company mode is enabled in all buffers where‘company-mode-on’ would do it.See ‘company-mode’ for more information on Company mode.
Global-Eldoc Toggle Global Eldoc mode on or off.With a prefix argument ARG, enable Global Eldoc mode if ARG ispositive, and disable it otherwise.  If called from Lisp, enablethe mode if ARG is omitted or nil, and toggle it if ARG is ‘toggle’.If Global Eldoc mode is on, ‘eldoc-mode’ will be enabled in allbuffers where it’s applicable.  These are buffers that have modesthat have enabled eldoc support.  See ‘eldoc-documentation-function’.
Global-Flycheck Toggle Flycheck mode in all buffers.With prefix ARG, enable Global Flycheck mode if ARG is positive;otherwise, disable it.  If called from Lisp, enable the mode ifARG is omitted or nil.Flycheck mode is enabled in all buffers where‘flycheck-mode-on-safe’ would do it.See ‘flycheck-mode’ for more information on Flycheck mode.
Global-Font-LockfundamentalToggle Font-Lock mode in all buffers.With prefix ARG, enable Global Font-Lock mode if ARG is positive;otherwise, disable it.  If called from Lisp, enable the mode ifARG is omitted or nil.Font-Lock mode is enabled in all buffers where‘turn-on-font-lock-if-desired’ would do it.See ‘font-lock-mode’ for more information on Font-Lock mode.
Global-Git-CommitEdit Git commit messages.This global mode arranges for ‘git-commit-setup’ to be calledwhen a Git commit message file is opened.  That usually happenswhen Git uses the Emacsclient as $GIT_EDITOR to have the userprovide such a commit message.
Global-Page-Break-Lines Toggle Page-Break-Lines mode in all buffers.With prefix ARG, enable Global Page-Break-Lines mode if ARG is positive;otherwise, disable it.  If called from Lisp, enable the mode ifARG is omitted or nil.Page-Break-Lines mode is enabled in all buffers where‘page-break-lines-mode-maybe’ would do it.See ‘page-break-lines-mode’ for more information on Page-Break-Lines mode.
Global-Prettify-Symbols Toggle Prettify-Symbols mode in all buffers.With prefix ARG, enable Global Prettify-Symbols mode if ARG is positive;otherwise, disable it.  If called from Lisp, enable the mode ifARG is omitted or nil.Prettify-Symbols mode is enabled in all buffers where‘turn-on-prettify-symbols-mode’ would do it.See ‘prettify-symbols-mode’ for more information on Prettify-Symbols mode.
Global-Rinari Toggle Rinari minor mode in all buffers.With prefix ARG, enable Global Rinari mode if ARG is positive;otherwise, disable it.  If called from Lisp, enable the mode ifARG is omitted or nil.Rinari minor mode is enabled in all buffers where‘rinari-launch-maybe’ would do it.See ‘rinari-minor-mode’ for more information on Rinari minor mode.
Global-Undo-TreeToggle Undo-Tree mode in all buffers.With prefix ARG, enable Global Undo-Tree mode if ARG is positive;otherwise, disable it.  If called from Lisp, enable the mode ifARG is omitted or nil.Undo-Tree mode is enabled in all buffers where‘turn-on-undo-tree-mode’ would do it.See ‘undo-tree-mode’ for more information on Undo-Tree mode.
Global-Whitespace-CleanupToggle Whitespace-Cleanup mode in all buffers.With prefix ARG, enable Global Whitespace-Cleanup mode if ARG is positive;otherwise, disable it.  If called from Lisp, enable the mode ifARG is omitted or nil.Whitespace-Cleanup mode is enabled in all buffers where‘turn-on-whitespace-cleanup-mode’ would do it.See ‘whitespace-cleanup-mode’ for more information on Whitespace-Cleanup mode.
Goto-Address-Prog
Guide-KeyToggle guide key mode.In guide key mode, Guide following keys to an input key sequenceautomatically and dynamically.With a prefix argument ARG, enable guide key mode if ARG ispositive, otherwise disable.
HesToggle highlighting of escape sequences.(fn &optional ARG)
Historianhistorian minor mode
Immortal-ScratchWhen the scratch buffer is killed, immediately respawn it.(fn &optional ARG)
Indent-Guide
Intero-Global
IprettyToggle ipretty mode globally.   With no argument, this command toggles the mode.   Non-null prefix argument turns on the mode.   Null prefix argument turns off the mode.
IvyToggle Ivy mode on or off.Turn Ivy mode on if ARG is positive, off otherwise.Turning on Ivy mode sets ‘completing-read-function’ to‘ivy-completing-read’.Global bindings:key             binding---             -------ESC             Prefix Command<remap>         Prefix CommandM-s             Prefix CommandM-s /           sanityinc/swiper-at-point<remap> <switch-to-buffer>      ivy-switch-buffer<remap> <switch-to-buffer-other-window>                                ivy-switch-buffer-other-windowMinibuffer bindings:key             binding---             -------C-c             Prefix CommandC-g             minibuffer-keyboard-quitTAB             ivy-partial-or-doneC-j             ivy-immediate-doneRET             ivy-alt-doneC-o             hydra-ivy/bodyC-r             ivy-reverse-i-searchC-s             ivy-next-line-or-historyC-v             ivy-scroll-up-commandESC             Prefix CommandSPC             self-insert-commandS-SPC           ivy-restrict-to-matchesC-RET           ivy-immediate-doneC-'             ivy-avy<next>          ivy-scroll-up-command<prior>         ivy-scroll-down-command<remap>         Prefix Command<up>            ivy-previous-line-or-historyC-c C-a         ivy-toggle-ignoreC-c C-o         ivy-occurC-c C-s         ivy-rotate-sort<remap> <backward-delete-char-untabify>                                ivy-backward-delete-char<remap> <backward-kill-word>    ivy-backward-kill-word<remap> <beginning-of-buffer>   ivy-beginning-of-buffer<remap> <delete-backward-char>  ivy-backward-delete-char<remap> <delete-char>           ivy-delete-char<remap> <describe-mode>         ivy-help<remap> <end-of-buffer>         ivy-end-of-buffer<remap> <forward-char>          ivy-forward-char<remap> <kill-line>             ivy-kill-line<remap> <kill-ring-save>        ivy-kill-ring-save<remap> <kill-word>             ivy-kill-word<remap> <next-line>             ivy-next-line<remap> <previous-line>         ivy-previous-line<remap> <scroll-down-command>   ivy-scroll-down-command<remap> <scroll-up-command>     ivy-scroll-up-commandC-M-a           ivy-read-actionC-M-j           ivy-immediate-doneM-RET           ivy-callC-M-n           ivy-next-line-and-callC-M-o           ivy-dispatching-callC-M-p           ivy-previous-line-and-callM-i             ivy-insert-currentM-j             ivy-yank-wordM-n             ivy-next-history-elementM-o             ivy-dispatching-doneM-p             ivy-previous-history-elementM-r             ivy-toggle-regexp-quoteM-v             ivy-scroll-down-command
Ivy-Historianhistorian minor mode
Line-NumberfundamentalToggle line number display in the mode line (Line Number mode).With a prefix argument ARG, enable Line Number mode if ARG ispositive, and disable it otherwise.  If called from Lisp, enablethe mode if ARG is omitted or nil.Line numbers do not appear for very large buffers and bufferswith very long lines; see variables ‘line-number-display-limit’and ‘line-number-display-limit-width’.
Magit-Auto-RevertToggle Magit Auto Revert mode.With a prefix argument ARG, enable Magit Auto Revert mode if ARGis positive, and disable it otherwise.  If called from Lisp,enable the mode if ARG is omitted or nil.Magit Auto Revert mode is a global minor mode that revertsbuffers associated with a file that is located inside a Gitrepository when the file changes on disk.  Use ‘auto-revert-mode’to revert a particular buffer.  Or use ‘global-auto-revert-mode’to revert all file-visiting buffers, not just those that visita file located inside a Git repository.This global mode works by turning on the buffer-local mode‘auto-revert-mode’ at the time a buffer is first created.  Thelocal mode is turned on if the visited file is being tracked ina Git repository at the time when the buffer is created.If ‘magit-auto-revert-tracked-only’ is non-nil (the default),then only tracked files are reverted.  But if you stage apreviously untracked file using ‘magit-stage’, then this modenotices that.Unlike ‘global-auto-revert-mode’, this mode never reverts anybuffers that are not visiting files.The behavior of this mode can be customized using the optionsin the ‘autorevert’ and ‘magit-autorevert’ groups.This function calls the hook ‘magit-auto-revert-mode-hook’.
Mouse-WheelfundamentalToggle mouse wheel support (Mouse Wheel mode).With a prefix argument ARG, enable Mouse Wheel mode if ARG ispositive, and disable it otherwise.  If called from Lisp, enablethe mode if ARG is omitted or nil.
Origami
Page-Break-Lines
Paredit-Everywhere
Prettify-Symbols
ProjectileMinor mode to assist project management and navigation.When called interactively, toggle ‘projectile-mode’.  With prefixARG, enable ‘projectile-mode’ if ARG is positive, otherwise disableit.When called from Lisp, enable ‘projectile-mode’ if ARG is omitted,nil or positive.  If ARG is ‘toggle’, toggle ‘projectile-mode’.Otherwise behave as if called interactively.key             binding---             -------C-c             Prefix CommandC-c p           projectile-command-mapC-c p ESC       projectile-project-buffers-other-bufferC-c p !         projectile-run-shell-command-in-rootC-c p &         projectile-run-async-shell-command-in-rootC-c p 4         Prefix CommandC-c p D         projectile-diredC-c p E         projectile-edit-dir-localsC-c p F         projectile-find-file-in-known-projectsC-c p I         projectile-ibufferC-c p P         projectile-test-projectC-c p R         projectile-regenerate-tagsC-c p S         projectile-save-project-buffersC-c p T         projectile-find-test-fileC-c p V         projectile-browse-dirty-projectsC-c p a         projectile-find-other-fileC-c p b         projectile-switch-to-bufferC-c p c         projectile-compile-projectC-c p d         projectile-find-dirC-c p e         projectile-recentfC-c p f         projectile-find-fileC-c p g         projectile-find-file-dwimC-c p i         projectile-invalidate-cacheC-c p j         projectile-find-tagC-c p k         projectile-kill-buffersC-c p l         projectile-find-file-in-directoryC-c p m         projectile-commanderC-c p o         projectile-multi-occurC-c p p         projectile-switch-projectC-c p q         projectile-switch-open-projectC-c p r         projectile-replaceC-c p s         Prefix CommandC-c p t         projectile-toggle-between-implementation-and-testC-c p u         projectile-run-projectC-c p v         projectile-vcC-c p x         Prefix CommandC-c p z         projectile-cache-current-fileC-c p x e       projectile-run-eshellC-c p x s       projectile-run-shellC-c p x t       projectile-run-termC-c p s g       projectile-grepC-c p s s       projectile-agC-c p 4 C-o     projectile-display-bufferC-c p 4 a       projectile-find-other-file-other-windowC-c p 4 b       projectile-switch-to-buffer-other-windowC-c p 4 d       projectile-find-dir-other-windowC-c p 4 f       projectile-find-file-other-windowC-c p 4 g       projectile-find-file-dwim-other-windowC-c p 4 t       projectile-find-implementation-or-test-other-window
Rainbow-Delimiters
RecentfToggle "Open Recent" menu (Recentf mode).With a prefix argument ARG, enable Recentf mode if ARG ispositive, and disable it otherwise.  If called from Lisp, enableRecentf mode if ARG is omitted or nil.When Recentf mode is enabled, a "Open Recent" submenu isdisplayed in the "File" menu, containing a list of files thatwere operated on recently.
SavehistToggle saving of minibuffer history (Savehist mode).With a prefix argument ARG, enable Savehist mode if ARG ispositive, and disable it otherwise.  If called from Lisp, enablethe mode if ARG is omitted or nil.When Savehist mode is enabled, minibuffer history is savedperiodically and when exiting Emacs.  When Savehist mode isenabled for the first time in an Emacs session, it loads theprevious minibuffer history from ‘savehist-file’.This mode should normally be turned on from your Emacs init file.Calling it at any other time replaces your current minibufferhistories, which is probably undesirable.
Shell-DirtrackfundamentalToggle directory tracking in this shell buffer (Shell Dirtrack mode).With a prefix argument ARG, enable Shell Dirtrack mode if ARG ispositive, and disable it otherwise.  If called from Lisp, enablethe mode if ARG is omitted or nil.The ‘dirtrack’ package provides an alternative implementation ofthis feature; see the function ‘dirtrack-mode’.
Show-ParenToggle visualization of matching parens (Show Paren mode).With a prefix argument ARG, enable Show Paren mode if ARG ispositive, and disable it otherwise.  If called from Lisp, enablethe mode if ARG is omitted or nil.Show Paren mode is a global minor mode.  When enabled, anymatching parenthesis is highlighted in ‘show-paren-style’ after‘show-paren-delay’ seconds of Emacs idle time.
Symbol-Overlay
TooltipfundamentalToggle Tooltip mode.With a prefix argument ARG, enable Tooltip mode if ARG is positive,and disable it otherwise.  If called from Lisp, enable the modeif ARG is omitted or nil.When this global minor mode is enabled, Emacs displays helptext (e.g. for buttons and menu items that you put the mouse on)in a pop-up window.When Tooltip mode is disabled, Emacs displays help text in theecho area, instead of making a pop-up window.
Transient-Mark
Undo-TreefundamentalToggle Transient Mark mode.With a prefix argument ARG, enable Transient Mark mode if ARG ispositive, and disable it otherwise.  If called from Lisp, enableTransient Mark mode if ARG is omitted or nil.Transient Mark mode is a global minor mode.  When enabled, theregion is highlighted with the ‘region’ face whenever the markis active.  The mark is "deactivated" by changing the buffer,and after certain other operations that set the mark but whosemain purpose is something else--for example, incremental search,<, and >.You can also deactivate the mark by typing C-g orM-ESC ESC.Many commands change their behavior when Transient Mark mode isin effect and the mark is active, by acting on the region insteadof their usual default part of the buffer’s text.  Examples ofsuch commands include M-;, M-x flush-lines, M-x keep-lines,M-%, C-M-%, M-x ispell, and C-_.To see the documentation of commands which are sensitive to theTransient Mark mode, invoke C-h d and type "transient"or "mark.*active" at the prompt.
Whitespace-CleanupToggle undo-tree mode.With no argument, this command toggles the mode.A positive prefix argument turns the mode on.A negative prefix argument turns it off.Undo-tree-mode replaces Emacs’ standard undo feature with a morepowerful yet easier to use version, that treats the undo historyas what it is: a tree.The following keys are available in ‘undo-tree-mode’:  key             binding---             -------C-x             Prefix CommandESC             Prefix CommandC-_             undo-tree-undoC-/             undo-tree-undoC-?             undo-tree-redo<remap>         Prefix CommandC-x r           Prefix CommandC-x u           undo-tree-visualizeM-_             undo-tree-redo<remap> <redo>  undo-tree-redo<remap> <undo>  undo-tree-undo<remap> <undo-only>             undo-tree-undoC-x r U         undo-tree-restore-state-from-registerC-x r u         undo-tree-save-state-to-registerWithin the undo-tree visualizer, the following keys are available:  key             binding---             -------C-b             undo-tree-visualize-switch-branch-leftC-f             undo-tree-visualize-switch-branch-rightC-n             undo-tree-visualize-redoC-p             undo-tree-visualize-undoC-q             undo-tree-visualizer-abortESC             Prefix CommandSPC             scroll-up-command,               undo-tree-visualizer-scroll-left-               negative-argument.               undo-tree-visualizer-scroll-right0 .. 9          digit-argument<               undo-tree-visualizer-scroll-left>               undo-tree-visualizer-scroll-right?               describe-modeb               undo-tree-visualize-switch-branch-leftd               undo-tree-visualizer-toggle-difff               undo-tree-visualize-switch-branch-rightg               revert-bufferh               describe-moden               undo-tree-visualize-redop               undo-tree-visualize-undoq               undo-tree-visualizer-quits               undo-tree-visualizer-selection-modet               undo-tree-visualizer-toggle-timestampsDEL             scroll-down-commandS-SPC           scroll-down-command<C-down>        undo-tree-visualize-redo-to-x<C-up>          undo-tree-visualize-undo-to-x<down>          undo-tree-visualize-redo<left>          undo-tree-visualize-switch-branch-left<mouse-1>       undo-tree-visualizer-mouse-set<next>          undo-tree-visualizer-scroll-up<prior>         undo-tree-visualizer-scroll-down<remap>         Prefix Command<right>         undo-tree-visualize-switch-branch-right<up>            undo-tree-visualize-undoM-{             undo-tree-visualize-undo-to-xM-}             undo-tree-visualize-redo-to-x<remap> <backward-char>         undo-tree-visualize-switch-branch-left<remap> <backward-paragraph>    undo-tree-visualize-undo-to-x<remap> <forward-char>          undo-tree-visualize-switch-branch-right<remap> <forward-paragraph>     undo-tree-visualize-redo-to-x<remap> <next-line>             undo-tree-visualize-redo<remap> <previous-line>         undo-tree-visualize-undo
Whole-Line-Or-RegionToggle use of whole-line-or-region minor mode.This minor mode allows functions to operate on the current line ifthey would normally operate on a region and region is currentlyundefined.Optional ARG turns mode on iff ARG is a positive integer.
Window-NumberingA minor mode that assigns a number to each window.
WinnerToggle Winner mode on or off.With a prefix argument ARG, enable Winner mode if ARG ispositive, and disable it otherwise.  If called from Lisp, enablethe mode if ARG is omitted or nil, and toggle it if ARG is ‘toggle’.Winner mode is a global minor mode that records the changes inthe window configuration (i.e. how the frames are partitionedinto windows) so that the changes can be "undone" using thecommand ‘winner-undo’.  By default this one is bound to the keysequence ‘C-c <left>’.  If you change your mind (while undoing),you can press ‘C-c <right>’ (calling ‘winner-redo’).

Comments

CONTENT