6b33031dc5
- Rename contrib directory to layers - Add new variable dotspacemacs-distribution - Move spacemacs layer to layers/!distribution - New layer spacemacs-core in layers/!distribution - User can now set dotspacemacs-distribution to spacemacs or spacemacs-core (default spacemacs) spacemacs-core is very lightweight layer sufficient to build upon spacemacs. |
||
---|---|---|
.. | ||
packages.el | ||
README.org |
Evil-commentary contribution layer for Spacemacs
Table of Contents TOC@4
Description
This layer replaces evil-nerd-commenter with evil-commentary for those who prefer the behaviour of 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 evil-commentary repository.
Install
To use this contribution add it to your ~/.spacemacs
.
(setq-default dotspacemacs-configuration-layers '(evil-commentary))
Key bindings
Key Binding | Description |
---|---|
SPC ; |
comment operator |
gcc |
comment current line |
gcap |
comment paragraphs |
gc SPC l |
comment up to a line with avy |
gy |
comment and yank |