Created
January 18, 2018 18:51
-
-
Save jmercouris/cdfcafa5281a0d20daaee01d4ae3a741 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enabled minor modes: Async-Bytecomp-Package Auto-Composition | |
Auto-Compression Auto-Dim-Other-Buffers Auto-Encryption Auto-Revert | |
Back-Button Column-Number Company Diff-Auto-Refine Eldoc | |
Electric-Indent File-Name-Shadow Font-Lock Global-Disable-Mouse | |
Global-Eldoc Global-Font-Lock Global-Git-Commit Global-Hl-Line | |
Highlight-Indent-Guides Ivy Line-Number Magit-Auto-Revert Mouse-Wheel | |
Override-Global Paredit Popwin Projectile Shell-Dirtrack | |
Show-Smartparens Show-Smartparens-Global Slime Slime-Autodoc | |
Slime-Trace-Dialog Smartparens Tracking Transient-Mark Which-Key Yas | |
Yas-Global | |
(Information about these minor modes follows the major mode info.) | |
Lisp mode defined in ‘lisp-mode.el’: | |
Major mode for editing Lisp code for Lisps other than GNU Emacs Lisp. | |
Commands: | |
Delete converts tabs to spaces as it moves back. | |
Blank lines separate paragraphs. Semicolons start comments. | |
key binding | |
--- ------- | |
C-c Prefix Command | |
ESC Prefix Command | |
DEL backward-delete-char-untabify | |
(that binding is currently shadowed by another mode) | |
s-h hydra-lisp/body | |
<f5> lisp-compile | |
C-c C-z run-lisp | |
(that binding is currently shadowed by another mode) | |
C-M-x lisp-eval-defun | |
(that binding is currently shadowed by another mode) | |
C-M-q indent-sexp | |
C-M-q prog-indent-sexp | |
(that binding is currently shadowed by another mode) | |
Note that ‘run-lisp’ may be used either to start an inferior Lisp job | |
or to switch back to an existing one. | |
In addition to any hooks its parent mode ‘prog-mode’ might have run, | |
this mode runs the hook ‘lisp-mode-hook’, as the final step | |
during initialization. | |
Async-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’. | |
(fn &optional ARG) | |
Auto-Composition minor mode (no indicator): | |
Toggle Auto Composition mode. | |
With a prefix argument ARG, enable Auto Composition mode if ARG | |
is 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 are | |
automatically composed by functions registered in | |
‘composition-function-table’. | |
You can use ‘global-auto-composition-mode’ to turn on | |
Auto Composition mode in all buffers (this is the default). | |
Auto-Compression minor mode (no indicator): | |
Toggle Auto Compression mode. | |
With a prefix argument ARG, enable Auto Compression mode if ARG | |
is 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, and | |
compressed when writing. | |
Auto-Dim-Other-Buffers minor mode (no indicator): | |
Visually makes non-current buffers less prominent | |
(fn &optional ARG) | |
Auto-Encryption minor mode (no indicator): | |
Toggle automatic file encryption/decryption (Auto Encryption mode). | |
With a prefix argument ARG, enable Auto Encryption mode if ARG is | |
positive, and disable it otherwise. If called from Lisp, enable | |
the mode if ARG is omitted or nil. | |
(fn &optional ARG) | |
Auto-Revert minor mode (no indicator): | |
Toggle reverting buffer when the file changes (Auto Revert mode). | |
With a prefix argument ARG, enable Auto Revert mode if ARG is | |
positive, and disable it otherwise. If called from Lisp, enable | |
the mode if ARG is omitted or nil. | |
Auto Revert mode is a minor mode that affects only the current | |
buffer. When enabled, it reverts the buffer when the file on | |
disk changes. | |
When a buffer is reverted, a message is generated. This can be | |
suppressed by setting ‘auto-revert-verbose’ to nil. | |
Use ‘global-auto-revert-mode’ to automatically revert all buffers. | |
Use ‘auto-revert-tail-mode’ if you know that the file will only grow | |
without being changed in the part that is already in the buffer. | |
(fn &optional ARG) | |
Back-Button minor mode (no indicator): | |
Turn on back-button-mode. | |
When called interactively with no prefix argument this command | |
toggles the mode. With a prefix argument, it enables the mode | |
if the argument is positive and otherwise disables the mode. | |
When called from Lisp, this command enables the mode if the | |
argument is omitted or nil, and toggles the mode if the argument | |
is ’toggle. | |
Column-Number minor mode (no indicator): | |
Toggle column number display in the mode line (Column Number mode). | |
With a prefix argument ARG, enable Column Number mode if ARG is | |
positive, and disable it otherwise. | |
If called from Lisp, enable the mode if ARG is omitted or nil. | |
(fn &optional ARG) | |
Company minor mode (no indicator): | |
"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 are | |
called 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 is | |
inactive, as well. | |
The completion data is retrieved using ‘company-backends’ and displayed | |
using ‘company-frontends’. If you want to start a specific backend, call | |
it interactively or use ‘company-begin-backend’. | |
By default, the completions list is sorted alphabetically, unless the | |
backend chooses otherwise, or ‘company-transformers’ changes it later. | |
regular keymap (‘company-mode-map’): | |
key binding | |
--- ------- | |
keymap during active completions (‘company-active-map’): | |
key binding | |
--- ------- | |
C-g company-abort | |
C-h company-show-doc-buffer | |
TAB company-complete-common | |
RET company-complete-selection | |
C-s company-search-candidates | |
C-w company-show-location | |
ESC 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-page | |
C-M-s company-filter-candidates | |
ESC ESC Prefix Command | |
M-0 .. M-9 company-complete-number | |
M-n company-select-next | |
M-p company-select-previous | |
M-ESC ESC company-abort | |
(fn &optional ARG) | |
Diff-Auto-Refine minor mode (no indicator): | |
Toggle automatic diff hunk highlighting (Diff Auto Refine mode). | |
With a prefix argument ARG, enable Diff Auto Refine mode if ARG | |
is 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 highlights | |
changes in detail as the user visits hunks. When transitioning | |
from disabled to enabled, it tries to refine the current hunk, as | |
well. | |
(fn &optional ARG) | |
Eldoc minor mode (no indicator): | |
Toggle echo area display of Lisp objects at point (ElDoc mode). | |
With a prefix argument ARG, enable ElDoc mode if ARG is positive, | |
and disable it otherwise. If called from Lisp, enable ElDoc mode | |
if ARG is omitted or nil. | |
ElDoc mode is a buffer-local minor mode. When enabled, the echo | |
area displays information about a function or variable in the | |
text where point is. If point is on a documented variable, it | |
displays the first line of that variable’s doc string. Otherwise | |
it displays the argument list of the function called in the | |
expression point is on. | |
(fn &optional ARG) | |
Electric-Indent minor mode (no indicator): | |
Toggle on-the-fly reindentation (Electric Indent mode). | |
With a prefix argument ARG, enable Electric Indent mode if ARG is | |
positive, and disable it otherwise. If called from Lisp, enable | |
the 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’. | |
File-Name-Shadow minor mode (no indicator): | |
Toggle file-name shadowing in minibuffers (File-Name Shadow mode). | |
With a prefix argument ARG, enable File-Name Shadow mode if ARG | |
is 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, any | |
part of a filename being read in the minibuffer that would be | |
ignored (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 that | |
portion dim, invisible, or otherwise less visually noticeable. | |
Font-Lock minor mode (no indicator): | |
Toggle syntax highlighting in this buffer (Font Lock mode). | |
With a prefix argument ARG, enable Font Lock mode if ARG is | |
positive, and disable it otherwise. If called from Lisp, enable | |
the 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 for | |
fontifying different parts of buffer text, use M-x customize-face. | |
You can enable Font Lock mode in any major mode automatically by | |
turning 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 automagically | |
turn on Font Lock mode in buffers whose major mode supports it | |
and whose major mode is one of ‘font-lock-global-modes’. For | |
example, put in your ~/.emacs: | |
(global-font-lock-mode t) | |
Where major modes support different levels of fontification, you | |
can use the variable ‘font-lock-maximum-decoration’ to specify | |
which level you generally prefer. When you turn Font Lock mode | |
on/off the buffer is fontified/defontified, though fontification | |
occurs only if the buffer is less than ‘font-lock-maximum-size’. | |
To add your own highlighting for some major mode, and modify the | |
highlighting 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 and | |
regardless 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 modification | |
on the current line caused syntactic change on other lines, you | |
can use M-o M-o. | |
You can set your own default settings for some mode, by setting a | |
buffer local value for ‘font-lock-defaults’, via its mode hook. | |
The above is the default behavior of ‘font-lock-mode’; you may | |
specify your own function which is called when ‘font-lock-mode’ | |
is toggled via ‘font-lock-function’. | |
Global-Disable-Mouse minor mode (no indicator): | |
Disable the mouse globally. | |
Interact with GUI elements such as divider lines will also be prevented. | |
Global-Eldoc minor mode (no indicator): | |
Toggle Global Eldoc mode on or off. | |
With a prefix argument ARG, enable Global Eldoc mode if ARG is | |
positive, and disable it otherwise. If called from Lisp, enable | |
the 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 all | |
buffers where it’s applicable. These are buffers that have modes | |
that have enabled eldoc support. See ‘eldoc-documentation-function’. | |
(fn &optional ARG) | |
Global-Font-Lock minor mode (no indicator): | |
Toggle 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 if | |
ARG 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-Commit minor mode (no indicator): | |
Edit Git commit messages. | |
This global mode arranges for ‘git-commit-setup’ to be called | |
when a Git commit message file is opened. That usually happens | |
when Git uses the Emacsclient as $GIT_EDITOR to have the user | |
provide such a commit message. | |
(fn &optional ARG) | |
Global-Hl-Line minor mode (no indicator): | |
Toggle line highlighting in all buffers (Global Hl-Line mode). | |
With a prefix argument ARG, enable Global Hl-Line mode if ARG is | |
positive, and disable it otherwise. If called from Lisp, enable | |
the mode if ARG is omitted or nil. | |
If ‘global-hl-line-sticky-flag’ is non-nil, Global Hl-Line mode | |
highlights the line about the current buffer’s point in all | |
windows. | |
Global-Hl-Line mode uses the functions ‘global-hl-line-unhighlight’ and | |
‘global-hl-line-highlight’ on ‘pre-command-hook’ and ‘post-command-hook’. | |
(fn &optional ARG) | |
Highlight-Indent-Guides minor mode (no indicator): | |
Display indent guides in a buffer. | |
Ivy minor mode (no indicator): | |
Toggle 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 | |
--- ------- | |
<remap> Prefix Command | |
<remap> <switch-to-buffer> ivy-switch-buffer | |
<remap> <switch-to-buffer-other-window> | |
ivy-switch-buffer-other-window | |
Minibuffer bindings: | |
key binding | |
--- ------- | |
C-c Prefix Command | |
C-g minibuffer-keyboard-quit | |
TAB ivy-partial-or-done | |
C-j ivy-alt-done | |
RET ivy-done | |
C-o hydra-ivy/body | |
C-r ivy-reverse-i-search | |
C-s ivy-next-line-or-history | |
C-v ivy-scroll-up-command | |
ESC Prefix Command | |
SPC self-insert-command | |
S-SPC ivy-restrict-to-matches | |
C-' ivy-avy | |
<next> ivy-scroll-up-command | |
<prior> ivy-scroll-down-command | |
<remap> Prefix Command | |
C-c C-a ivy-toggle-ignore | |
C-c C-o ivy-occur | |
C-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-command | |
C-M-a ivy-read-action | |
C-M-j ivy-immediate-done | |
M-RET ivy-call | |
C-M-n ivy-next-line-and-call | |
C-M-o ivy-dispatching-call | |
C-M-p ivy-previous-line-and-call | |
M-i ivy-insert-current | |
M-j ivy-yank-word | |
M-n ivy-next-history-element | |
M-o ivy-dispatching-done | |
M-p ivy-previous-history-element | |
M-r ivy-toggle-regexp-quote | |
M-v ivy-scroll-down-command | |
(fn &optional ARG) | |
Line-Number minor mode (no indicator): | |
Toggle line number display in the mode line (Line Number mode). | |
With a prefix argument ARG, enable Line Number mode if ARG is | |
positive, and disable it otherwise. If called from Lisp, enable | |
the mode if ARG is omitted or nil. | |
Line numbers do not appear for very large buffers and buffers | |
with very long lines; see variables ‘line-number-display-limit’ | |
and ‘line-number-display-limit-width’. | |
(fn &optional ARG) | |
Magit-Auto-Revert minor mode (no indicator): | |
Toggle Magit Auto Revert mode. | |
With a prefix argument ARG, enable Magit Auto Revert mode if ARG | |
is 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 reverts | |
buffers associated with a file that is located inside a Git | |
repository 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 visit | |
a 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. The | |
local mode is turned on if the visited file is being tracked in | |
a 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 a | |
previously untracked file using ‘magit-stage’, then this mode | |
notices that. | |
Unlike ‘global-auto-revert-mode’, this mode never reverts any | |
buffers that are not visiting files. | |
The behavior of this mode can be customized using the options | |
in the ‘autorevert’ and ‘magit-autorevert’ groups. | |
This function calls the hook ‘magit-auto-revert-mode-hook’. | |
Mouse-Wheel minor mode (no indicator): | |
Toggle mouse wheel support (Mouse Wheel mode). | |
With a prefix argument ARG, enable Mouse Wheel mode if ARG is | |
positive, and disable it otherwise. If called from Lisp, enable | |
the mode if ARG is omitted or nil. | |
Override-Global minor mode (no indicator): | |
A minor mode so that keymap settings override other modes. | |
Paredit minor mode (no indicator): | |
Minor mode for pseudo-structurally editing Lisp code. | |
With a prefix argument, enable Paredit Mode even if there are | |
unbalanced parentheses in the buffer. | |
Paredit behaves badly if parentheses are unbalanced, so exercise | |
caution when forcing Paredit Mode to be enabled, and consider | |
fixing unbalanced parentheses instead. | |
Basic Insertion Commands | |
( paredit-open-round | |
(a b |c d) | |
---> | |
(a b (|) c d) | |
(foo "bar |baz" quux) | |
---> | |
(foo "bar (|baz" quux) | |
) paredit-close-round | |
(a b |c ) | |
---> | |
(a b c)| | |
; Hello,| world! | |
---> | |
; Hello,)| world! | |
M-) paredit-close-round-and-newline | |
(defun f (x| )) | |
---> | |
(defun f (x) | |
|) | |
; (Foo.| | |
---> | |
; (Foo.)| | |
[ paredit-open-square | |
(a b |c d) | |
---> | |
(a b [|] c d) | |
(foo "bar |baz" quux) | |
---> | |
(foo "bar [|baz" quux) | |
] paredit-close-square | |
(define-key keymap [frob| ] ’frobnicate) | |
---> | |
(define-key keymap [frob]| ’frobnicate) | |
; [Bar.| | |
---> | |
; [Bar.]| | |
" paredit-doublequote | |
(frob grovel |full lexical) | |
---> | |
(frob grovel "|" full lexical) | |
---> | |
(frob grovel ""| full lexical) | |
(foo "bar |baz" quux) | |
---> | |
(foo "bar \"|baz" quux) | |
(frob grovel) ; full |lexical | |
---> | |
(frob grovel) ; full "|lexical | |
M-" paredit-meta-doublequote | |
(foo "bar |baz" quux) | |
---> | |
(foo "bar baz"| quux) | |
(foo |(bar #\x "baz \\ quux") zot) | |
---> | |
(foo "|(bar #\\x \"baz \\\\ quux\")" zot) | |
\ paredit-backslash | |
(string #|) | |
; Character to escape: x | |
---> | |
(string #\x|) | |
"foo|bar" | |
; Character to escape: " | |
---> | |
"foo\"|bar" | |
; paredit-semicolon | |
|(frob grovel) | |
---> | |
;|(frob grovel) | |
(frob |grovel) | |
---> | |
(frob ;|grovel | |
) | |
(frob |grovel (bloit | |
zargh)) | |
---> | |
(frob ;|grovel | |
(bloit | |
zargh)) | |
(frob grovel) | | |
---> | |
(frob grovel) ;| | |
M-; paredit-comment-dwim | |
(foo |bar) ; baz | |
---> | |
(foo bar) ; |baz | |
(frob grovel)| | |
---> | |
(frob grovel) ;| | |
(zot (foo bar) | |
| | |
(baz quux)) | |
---> | |
(zot (foo bar) | |
;; | | |
(baz quux)) | |
(zot (foo bar) |(baz quux)) | |
---> | |
(zot (foo bar) | |
;; | | |
(baz quux)) | |
|(defun hello-world ...) | |
---> | |
;;; | | |
(defun hello-world ...) | |
C-j paredit-newline | |
(let ((n (frobbotz))) |(display (+ n 1) | |
port)) | |
---> | |
(let ((n (frobbotz))) | |
|(display (+ n 1) | |
port)) | |
Deleting & Killing | |
C-d paredit-forward-delete | |
(quu|x "zot") | |
---> | |
(quu| "zot") | |
(quux |"zot") | |
---> | |
(quux "|zot") | |
---> | |
(quux "|ot") | |
(foo (|) bar) | |
---> | |
(foo | bar) | |
|(foo bar) | |
---> | |
(|foo bar) | |
DEL paredit-backward-delete | |
("zot" q|uux) | |
---> | |
("zot" |uux) | |
("zot"| quux) | |
---> | |
("zot|" quux) | |
---> | |
("zo|" quux) | |
(foo (|) bar) | |
---> | |
(foo | bar) | |
(foo bar)| | |
---> | |
(foo bar|) | |
C-k paredit-kill | |
(foo bar)| ; Useless comment! | |
---> | |
(foo bar)| | |
(|foo bar) ; Useful comment! | |
---> | |
(|) ; Useful comment! | |
|(foo bar) ; Useless line! | |
---> | |
| | |
(foo "|bar baz" | |
quux) | |
---> | |
(foo "|" | |
quux) | |
M-d paredit-forward-kill-word | |
|(foo bar) ; baz | |
---> | |
(| bar) ; baz | |
---> | |
(|) ; baz | |
---> | |
() ;| | |
;;;| Frobnicate | |
(defun frobnicate ...) | |
---> | |
;;;| | |
(defun frobnicate ...) | |
---> | |
;;; | |
(| frobnicate ...) | |
M-DEL paredit-backward-kill-word | |
(foo bar) ; baz | |
(quux)| | |
---> | |
(foo bar) ; baz | |
(|) | |
---> | |
(foo bar) ; | | |
() | |
---> | |
(foo |) ; | |
() | |
---> | |
(|) ; | |
() | |
Movement & Navigation | |
C-M-f paredit-forward | |
(foo |(bar baz) quux) | |
---> | |
(foo (bar baz)| quux) | |
(foo (bar)|) | |
---> | |
(foo (bar))| | |
C-M-b paredit-backward | |
(foo (bar baz)| quux) | |
---> | |
(foo |(bar baz) quux) | |
(|(foo) bar) | |
---> | |
|((foo) bar) | |
C-M-u paredit-backward-up | |
(no examples) | |
C-M-d paredit-forward-down | |
(no examples) | |
C-M-p paredit-backward-down | |
(no examples) | |
C-M-n paredit-forward-up | |
(no examples) | |
Depth-Changing Commands | |
M-( paredit-wrap-round | |
(foo |bar baz) | |
---> | |
(foo (|bar) baz) | |
M-s paredit-splice-sexp | |
(foo (bar| baz) quux) | |
---> | |
(foo bar| baz quux) | |
<M-up> paredit-splice-sexp-killing-backward | |
(foo (let ((x 5)) |(sqrt n)) bar) | |
---> | |
(foo |(sqrt n) bar) | |
<M-down> paredit-splice-sexp-killing-forward | |
(a (b c| d e) f) | |
---> | |
(a b c| f) | |
M-r paredit-raise-sexp | |
(dynamic-wind in (lambda () |body) out) | |
---> | |
(dynamic-wind in |body out) | |
---> | |
|body | |
M-? paredit-convolute-sexp | |
(let ((x 5) (y 3)) (frob |(zwonk)) (wibblethwop)) | |
---> | |
(frob |(let ((x 5) (y 3)) (zwonk) (wibblethwop))) | |
Barfage & Slurpage | |
<C-right> paredit-forward-slurp-sexp | |
(foo (bar |baz) quux zot) | |
---> | |
(foo (bar |baz quux) zot) | |
(a b ((c| d)) e f) | |
---> | |
(a b ((c| d) e) f) | |
<C-left> paredit-forward-barf-sexp | |
(foo (bar |baz quux) zot) | |
---> | |
(foo (bar |baz) quux zot) | |
<C-M-left> paredit-backward-slurp-sexp | |
(foo bar (baz| quux) zot) | |
---> | |
(foo (bar baz| quux) zot) | |
(a b ((c| d)) e f) | |
---> | |
(a (b (c| d)) e f) | |
<C-M-right> paredit-backward-barf-sexp | |
(foo (bar baz |quux) zot) | |
---> | |
(foo bar (baz |quux) zot) | |
Miscellaneous Commands | |
M-S paredit-split-sexp | |
(hello| world) | |
---> | |
(hello)| (world) | |
"Hello, |world!" | |
---> | |
"Hello, "| "world!" | |
M-J paredit-join-sexps | |
(hello)| (world) | |
---> | |
(hello| world) | |
"Hello, "| "world!" | |
---> | |
"Hello, |world!" | |
hello- | |
| world | |
---> | |
hello-|world | |
C-c C-M-l paredit-recenter-on-sexp | |
(no examples) | |
M-q paredit-reindent-defun | |
(no examples) | |
Popwin minor mode (no indicator): | |
Projectile minor mode (no indicator): | |
Minor mode to assist project management and navigation. | |
When called interactively, toggle ‘projectile-mode’. With prefix | |
ARG, enable ‘projectile-mode’ if ARG is positive, otherwise disable | |
it. | |
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 Command | |
<remap> Prefix Command | |
<remap> <projectile-ag> counsel-projectile-ag | |
<remap> <projectile-find-dir> counsel-projectile-find-dir | |
<remap> <projectile-find-file> counsel-projectile-find-file | |
<remap> <projectile-grep> counsel-projectile-grep | |
<remap> <projectile-switch-project> | |
counsel-projectile-switch-project | |
<remap> <projectile-switch-to-buffer> | |
counsel-projectile-switch-to-buffer | |
C-c p projectile-command-map | |
C-c p ESC projectile-project-buffers-other-buffer | |
C-c p SPC counsel-projectile | |
C-c p ! projectile-run-shell-command-in-root | |
C-c p & projectile-run-async-shell-command-in-root | |
C-c p 4 Prefix Command | |
C-c p 5 Prefix Command | |
C-c p D projectile-dired | |
C-c p E projectile-edit-dir-locals | |
C-c p F projectile-find-file-in-known-projects | |
C-c p I projectile-ibuffer | |
C-c p P projectile-test-project | |
C-c p R projectile-regenerate-tags | |
C-c p S projectile-save-project-buffers | |
C-c p T projectile-find-test-file | |
C-c p V projectile-browse-dirty-projects | |
C-c p a projectile-find-other-file | |
C-c p b projectile-switch-to-buffer | |
C-c p c projectile-compile-project | |
C-c p d projectile-find-dir | |
C-c p e projectile-recentf | |
C-c p f projectile-find-file | |
C-c p g projectile-find-file-dwim | |
C-c p i projectile-invalidate-cache | |
C-c p j projectile-find-tag | |
C-c p k projectile-kill-buffers | |
C-c p l projectile-find-file-in-directory | |
C-c p m projectile-commander | |
C-c p o projectile-multi-occur | |
C-c p p projectile-switch-project | |
C-c p q projectile-switch-open-project | |
C-c p r projectile-replace | |
C-c p s Prefix Command | |
C-c p t projectile-toggle-between-implementation-and-test | |
C-c p u projectile-run-project | |
C-c p v projectile-vc | |
C-c p x Prefix Command | |
C-c p z projectile-cache-current-file | |
C-c p x e projectile-run-eshell | |
C-c p x s projectile-run-shell | |
C-c p x t projectile-run-term | |
C-c p s g projectile-grep | |
C-c p s s projectile-ag | |
C-c p 5 D projectile-dired-other-frame | |
C-c p 5 a projectile-find-other-file-other-frame | |
C-c p 5 b projectile-switch-to-buffer-other-frame | |
C-c p 5 d projectile-find-dir-other-frame | |
C-c p 5 f projectile-find-file-other-frame | |
C-c p 5 g projectile-find-file-dwim-other-frame | |
C-c p 5 t projectile-find-implementation-or-test-other-frame | |
C-c p 4 C-o projectile-display-buffer | |
C-c p 4 D projectile-dired-other-window | |
C-c p 4 a projectile-find-other-file-other-window | |
C-c p 4 b projectile-switch-to-buffer-other-window | |
C-c p 4 d projectile-find-dir-other-window | |
C-c p 4 f projectile-find-file-other-window | |
C-c p 4 g projectile-find-file-dwim-other-window | |
C-c p 4 t projectile-find-implementation-or-test-other-window | |
(fn &optional ARG) | |
Shell-Dirtrack minor mode (no indicator): | |
Toggle directory tracking in this shell buffer (Shell Dirtrack mode). | |
With a prefix argument ARG, enable Shell Dirtrack mode if ARG is | |
positive, and disable it otherwise. If called from Lisp, enable | |
the mode if ARG is omitted or nil. | |
The ‘dirtrack’ package provides an alternative implementation of | |
this feature; see the function ‘dirtrack-mode’. | |
(fn &optional ARG) | |
Show-Smartparens minor mode (no indicator): | |
Toggle visualization of matching pairs. When enabled, any | |
matching pair is highlighted after ‘sp-show-pair-delay’ seconds | |
of Emacs idle time if the point is immediately in front or after | |
a pair. This mode works similarly to ‘show-paren-mode’, but | |
support custom pairs. | |
(fn &optional ARG) | |
Show-Smartparens-Global minor mode (no indicator): | |
Toggle Show-Smartparens mode in all buffers. | |
With prefix ARG, enable Show-Smartparens-Global mode if ARG is positive; | |
otherwise, disable it. If called from Lisp, enable the mode if | |
ARG is omitted or nil. | |
Show-Smartparens mode is enabled in all buffers where | |
‘turn-on-show-smartparens-mode’ would do it. | |
See ‘show-smartparens-mode’ for more information on Show-Smartparens mode. | |
(fn &optional ARG) | |
Slime minor mode (indicator [next ccl]): | |
SLIME: The Superior Lisp Interaction Mode for Emacs (minor-mode). | |
Commands to compile the current buffer’s source file and visually | |
highlight any resulting compiler notes and warnings: | |
C-c C-k - Compile and load the current buffer’s file. | |
C-c M-k - Compile (but not load) the current buffer’s file. | |
C-c C-c - Compile the top-level form at point. | |
Commands for visiting compiler notes: | |
M-n - Goto the next form with a compiler note. | |
M-p - Goto the previous form with a compiler note. | |
C-c M-c - Remove compiler-note annotations in buffer. | |
Finding definitions: | |
M-. | |
- Edit the definition of the function called at point. | |
M-, | |
- Pop the definition stack to go back from a definition. | |
Documentation commands: | |
C-c C-d C-d - Describe symbol. | |
C-c C-d C-a - Apropos search. | |
C-c M-d - Disassemble a function. | |
Evaluation commands: | |
C-M-x - Evaluate top-level from containing point. | |
C-x C-e - Evaluate sexp before point. | |
C-c C-p - Evaluate sexp before point, pretty-print result. | |
Full set of commands: | |
key binding | |
--- ------- | |
C-c Prefix Command | |
C-x Prefix Command | |
ESC Prefix Command | |
SPC slime-space | |
C-c C-c slime-compile-defun | |
C-c C-j slime-eval-last-expression-in-repl | |
C-c C-k slime-compile-and-load-file | |
C-c C-s slime-complete-form | |
C-c C-y slime-call-defun | |
C-c ESC Prefix Command | |
C-c C-] slime-close-all-parens-in-sexp | |
C-c x slime-export-symbol-at-point | |
C-c ~ slime-sync-package-and-default-directory | |
C-M-a slime-beginning-of-defun | |
C-M-e slime-end-of-defun | |
M-n slime-next-note | |
M-p slime-previous-note | |
C-M-, slime-previous-location | |
C-M-. slime-next-location | |
C-c TAB completion-at-point | |
C-c RET slime-expand-1 | |
C-c C-p slime-pprint-eval-last-expression | |
C-c C-u slime-undefine-function | |
C-c ESC Prefix Command | |
C-c C-b slime-interrupt | |
C-c C-d slime-doc-map | |
C-c C-e slime-interactive-eval | |
C-c C-l slime-load-file | |
C-c C-r slime-eval-region | |
C-c C-t slime-toggle-fancy-trace | |
C-c C-v Prefix Command | |
C-c C-w slime-who-map | |
C-c C-x Prefix Command | |
C-c C-z slime-switch-to-output-buffer | |
C-c ESC Prefix Command | |
C-c : slime-interactive-eval | |
C-c < slime-list-callers | |
C-c > slime-list-callees | |
C-c E slime-edit-value | |
C-c I slime-inspect | |
C-x C-e slime-eval-last-expression | |
C-x 4 Prefix Command | |
C-x 5 Prefix Command | |
C-M-x slime-eval-defun | |
M-, slime-pop-find-definition-stack | |
M-. slime-edit-definition | |
M-? slime-edit-uses | |
M-_ slime-edit-uses | |
C-c M-c slime-remove-notes | |
C-c M-e macrostep-expand | |
C-c M-i slime-fuzzy-complete-symbol | |
C-c M-k slime-compile-file | |
C-c M-q slime-reindent-defun | |
C-c M-m slime-macroexpand-all | |
C-c C-v C-d slime-describe-presentation-at-point | |
C-c C-v TAB slime-inspect-presentation-at-point | |
C-c C-v C-n slime-next-presentation | |
C-c C-v C-p slime-previous-presentation | |
C-c C-v C-r slime-copy-presentation-at-point-to-repl | |
C-c C-v C-w slime-copy-presentation-at-point-to-kill-ring | |
C-c C-v ESC Prefix Command | |
C-c C-v SPC slime-mark-presentation | |
C-c C-v d slime-describe-presentation-at-point | |
C-c C-v i slime-inspect-presentation-at-point | |
C-c C-v n slime-next-presentation | |
C-c C-v p slime-previous-presentation | |
C-c C-v r slime-copy-presentation-at-point-to-repl | |
C-c C-v w slime-copy-presentation-at-point-to-kill-ring | |
C-c C-v C-SPC slime-mark-presentation | |
C-c C-w C-a slime-who-specializes | |
C-c C-w C-b slime-who-binds | |
C-c C-w C-c slime-who-calls | |
C-c C-w RET slime-who-macroexpands | |
C-c C-w C-r slime-who-references | |
C-c C-w C-s slime-who-sets | |
C-c C-w C-w slime-calls-who | |
C-c C-w a slime-who-specializes | |
C-c C-w b slime-who-binds | |
C-c C-w c slime-who-calls | |
C-c C-w d slime-who-depends-on | |
C-c C-w m slime-who-macroexpands | |
C-c C-w r slime-who-references | |
C-c C-w s slime-who-sets | |
C-c C-w w slime-calls-who | |
C-c C-d C-a slime-apropos | |
C-c C-d C-d slime-describe-symbol | |
C-c C-d C-f slime-describe-function | |
C-c C-d C-g common-lisp-hyperspec-glossary-term | |
C-c C-d C-p slime-apropos-package | |
C-c C-d C-z slime-apropos-all | |
C-c C-d # common-lisp-hyperspec-lookup-reader-macro | |
C-c C-d a slime-apropos | |
C-c C-d d slime-describe-symbol | |
C-c C-d f slime-describe-function | |
C-c C-d g common-lisp-hyperspec-glossary-term | |
C-c C-d h slime-documentation-lookup | |
C-c C-d p slime-apropos-package | |
C-c C-d z slime-apropos-all | |
C-c C-d ~ common-lisp-hyperspec-format | |
C-c C-d C-# common-lisp-hyperspec-lookup-reader-macro | |
C-c C-d C-~ common-lisp-hyperspec-format | |
C-c C-x c slime-list-connections | |
C-c C-x n slime-next-connection | |
C-c C-x p slime-prev-connection | |
C-c C-x t slime-list-threads | |
C-c M-d slime-disassemble-symbol | |
C-c M-p slime-repl-set-package | |
C-x 5 . slime-edit-definition-other-frame | |
C-x 4 . slime-edit-definition-other-window | |
C-c C-v M-o slime-clear-presentations | |
Slime-Autodoc minor mode (no indicator): | |
Toggle echo area display of Lisp objects at point. | |
Slime-Trace-Dialog minor mode (no indicator): | |
Add keybindings for accessing SLIME’s Trace Dialog. | |
Smartparens minor mode (indicator SP): | |
Toggle smartparens mode. | |
You can enable pre-set bindings by customizing | |
‘sp-base-key-bindings’ variable. The current content of | |
‘smartparens-mode-map’ is: | |
key binding | |
--- ------- | |
(fn &optional ARG) | |
Tracking minor mode (no indicator): | |
Allow cycling through modified buffers. | |
This mode in itself does not track buffer modification, but | |
provides an API for programs to add buffers as modified (using | |
‘tracking-add-buffer’). | |
Once this mode is active, modified buffers are shown in the mode | |
line. The user can cycle through them using | |
C-c C-@. | |
Transient-Mark minor mode (no indicator): | |
Toggle Transient Mark mode. | |
With a prefix argument ARG, enable Transient Mark mode if ARG is | |
positive, and disable it otherwise. If called from Lisp, enable | |
Transient Mark mode if ARG is omitted or nil. | |
Transient Mark mode is a global minor mode. When enabled, the | |
region is highlighted with the ‘region’ face whenever the mark | |
is active. The mark is "deactivated" by changing the buffer, | |
and after certain other operations that set the mark but whose | |
main purpose is something else--for example, incremental search, | |
<, and >. | |
You can also deactivate the mark by typing C-g or | |
M-ESC ESC. | |
Many commands change their behavior when Transient Mark mode is | |
in effect and the mark is active, by acting on the region instead | |
of their usual default part of the buffer’s text. Examples of | |
such commands include M-;, M-x flush-lines, M-x keep-lines, | |
M-%, C-M-%, s-:, and C-x u. | |
To see the documentation of commands which are sensitive to the | |
Transient Mark mode, invoke C-h d and type "transient" | |
or "mark.*active" at the prompt. | |
(fn &optional ARG) | |
Which-Key minor mode (no indicator): | |
Toggle which-key-mode. | |
(fn &optional ARG) | |
Yas minor mode (no indicator): | |
Toggle YASnippet mode. | |
When YASnippet mode is enabled, ‘yas-expand’, normally bound to | |
the TAB key, expands snippets of code depending on the major | |
mode. | |
With no argument, this command toggles the mode. | |
positive prefix argument turns on the mode. | |
Negative prefix argument turns off the mode. | |
Key bindings: | |
key binding | |
--- ------- | |
C-c Prefix Command | |
C-c & Prefix Command | |
C-c & C-n yas-new-snippet | |
C-c & C-s yas-insert-snippet | |
C-c & C-v yas-visit-snippet-file | |
Yas-Global minor mode (no indicator): | |
Toggle Yas minor mode in all buffers. | |
With prefix ARG, enable Yas-Global mode if ARG is positive; | |
otherwise, disable it. If called from Lisp, enable the mode if | |
ARG is omitted or nil. | |
Yas minor mode is enabled in all buffers where | |
‘yas-minor-mode-on’ would do it. | |
See ‘yas-minor-mode’ for more information on Yas minor mode. | |
[back] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment