init.el: Add evil nerd commenter
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
8fece8c12c
commit
3d9b0b5278
1 changed files with 12 additions and 1 deletions
13
init.el
13
init.el
|
@ -109,6 +109,8 @@
|
||||||
(setq-default evil-escape-key-sequence "jk")
|
(setq-default evil-escape-key-sequence "jk")
|
||||||
:config
|
:config
|
||||||
(evil-escape-mode 1))
|
(evil-escape-mode 1))
|
||||||
|
(use-package evil-nerd-commenter
|
||||||
|
:ensure t)
|
||||||
|
|
||||||
;; Anzu for search matching
|
;; Anzu for search matching
|
||||||
(use-package anzu
|
(use-package anzu
|
||||||
|
@ -306,7 +308,16 @@
|
||||||
"g/" '(helm-git-grep
|
"g/" '(helm-git-grep
|
||||||
:which-key "open helm git grep")
|
:which-key "open helm git grep")
|
||||||
"g*" '(helm-git-grep-at-point
|
"g*" '(helm-git-grep-at-point
|
||||||
:which-key "open helm git grep at point")))
|
:which-key "open helm git grep at point")
|
||||||
|
"ci" 'evilnc-comment-or-uncomment-lines
|
||||||
|
"cl" 'evilnc-quick-comment-or-uncomment-to-the-line
|
||||||
|
"ll" 'evilnc-quick-comment-or-uncomment-to-the-line
|
||||||
|
"cc" 'evilnc-copy-and-comment-lines
|
||||||
|
"cp" 'evilnc-comment-or-uncomment-paragraphs
|
||||||
|
"cr" 'comment-or-uncomment-region
|
||||||
|
"cv" 'evilnc-toggle-invert-comment-line-by-line
|
||||||
|
"." 'evilnc-copy-and-comment-operator
|
||||||
|
"\\" 'evilnc-comment-operator))
|
||||||
|
|
||||||
(general-define-key
|
(general-define-key
|
||||||
:states '(normal visual emacs)
|
:states '(normal visual emacs)
|
||||||
|
|
Loading…
Reference in a new issue