Add evil-commentary layer.
This commit is contained in:
parent
61145ab8ae
commit
e22e2b4623
22
contrib/evil-commentary/README.md
Normal file
22
contrib/evil-commentary/README.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Evil-commentary contribution layer for Spacemacs
|
||||
|
||||
## Description
|
||||
|
||||
This layer is a replaces evil-nerd-commenter with evil-commentary,
|
||||
for those who desire behaviour like `vim-commentary`'s.
|
||||
|
||||
> Use <kbd>gcc</kbd> to comment out a line (takes a count),
|
||||
> <kbd>gc</kbd> to comment out the target of a motion (for example,
|
||||
> <kbd>gcap</kbd> to comment out a paragraph), <kbd>gc</kbd> 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`.
|
||||
|
||||
```elisp
|
||||
(setq-default dotspacemacs-configuration-layers '(evil-commentary))
|
||||
```
|
||||
[evil-commentary]: https://github.com/linktohack/evil-commentary
|
26
contrib/evil-commentary/packages.el
Normal file
26
contrib/evil-commentary/packages.el
Normal file
|
@ -0,0 +1,26 @@
|
|||
;;; packages.el --- evil-commentary Layer packages File for Spacemacs
|
||||
;;
|
||||
;; Copyright (c) 2012-2014 Sylvain Benner
|
||||
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
|
||||
;;
|
||||
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
||||
;; URL: https://github.com/syl20bnr/spacemacs
|
||||
;;
|
||||
;; This file is not part of GNU Emacs.
|
||||
;;
|
||||
;;; License: GPLv3
|
||||
|
||||
(defvar evil-commentary-packages '(evil-commentary)
|
||||
"List of all packages to install and/or initialize. Built-in packages
|
||||
which require an initialization must be listed explicitly in the list.")
|
||||
|
||||
(defvar evil-commentary-excluded-packages '(evil-nerd-commenter)
|
||||
"List of packages to exclude.")
|
||||
|
||||
(defun evil-commentary/init-evil-commentary ()
|
||||
"Initialize evil-commentary."
|
||||
(use-package evil-commentary
|
||||
:diminish evil-commentary-mode
|
||||
:config
|
||||
(progn
|
||||
(evil-commentary-mode t))))
|
Loading…
Reference in a new issue