After the change in 1d340dcc77
,
there was some grumbling in gitter that `SPC L` is not as convenient
as `SPC l`. Apparently avy-goto-line is a popular function.
`SPC y` is chosen because it is:
- currently unused (as far as I can tell).
- sort of mnemonic because "avy" has a "y" in it.
- doesn't require SHIFT to type
- is accessible even on non-US keyboards
(there were suggestions such ";" and "\" that are not as accessible
on non-US keyboards)
This change also updates the documentation regarding the change from
ace-jump-mode to avy.
34 lines
1.3 KiB
Org Mode
34 lines
1.3 KiB
Org Mode
#+TITLE: Evil-commentary contribution layer for Spacemacs
|
|
|
|
* Table of Contents :TOC_4_org:noexport:
|
|
- [[Description][Description]]
|
|
- [[Install][Install]]
|
|
- [[Key bindings][Key bindings]]
|
|
|
|
* Description
|
|
This layer replaces [[https://github.com/redguardtoo/evil-nerd-commenter][evil-nerd-commenter]] with [[https://github.com/linktohack/evil-commentary][evil-commentary]] for those
|
|
who prefer the behaviour of [[https://github.com/tpope/vim-commentary][vim-commentary]].
|
|
|
|
- Use ~gcc~ to comment out a line (takes a count),
|
|
- ~gc~ to comment out the target of a motion (for example,
|
|
- ~gcap~ to comment out a paragraph), ~gc~ in visual
|
|
mode to comment out the selection.
|
|
|
|
For more details see the [[https://github.com/linktohack/evil-commentary][evil-commentary]] repository.
|
|
|
|
* Install
|
|
To use this contribution add it to your =~/.spacemacs=.
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
(setq-default dotspacemacs-configuration-layers '(evil-commentary))
|
|
#+END_SRC
|
|
|
|
* Key bindings
|
|
| Key Binding | Description |
|
|
|-------------+-------------------------------|
|
|
| ~SPC ;~ | comment operator |
|
|
| ~gcc~ | comment current line |
|
|
| ~gcap~ | comment paragraphs |
|
|
| ~gc SPC y~ | comment up to a line with avy |
|
|
| ~gy~ | comment and yank |
|