Skip to content

Commit

Permalink
Fixes syl20bnr#40 and syl20bnr#53 Move evil-nerd-commenter to extensions
Browse files Browse the repository at this point in the history
Work-around a current bug in evil-nc with 24.4 byte-compilation
  • Loading branch information
syl20bnr authored and mmailhot committed Nov 16, 2014
1 parent 2a072a7 commit ad091fb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
[submodule "contrib/syl20bnr/extensions/o-blog"]
path = contrib/syl20bnr/extensions/o-blog
url = https://github.com/renard/o-blog.git
[submodule "spacemacs/extensions/yasnippet-snippets"]
path = spacemacs/extensions/yasnippet-snippets
url = http://github.com/AndreaCrotti/yasnippet-snippets.git
[submodule "spacemacs/extensions/evil-nerd-commenter"]
path = spacemacs/extensions/evil-nerd-commenter
url = https://github.com/redguardtoo/evil-nerd-commenter
14 changes: 14 additions & 0 deletions spacemacs/extensions.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
centered-cursor
dos
emoji-cheat-sheet
evil-nerd-commenter
evil-org-mode
evil-plugins
helm-rcirc
Expand Down Expand Up @@ -49,6 +50,19 @@
(use-package emoji-cheat-sheet
:commands emoji-cheat-sheet))

(defun spacemacs/init-evil-nerd-commenter ()
(use-package evil-nerd-commenter
:init
(progn
(evil-leader/set-key
"ncl" 'evilnc-comment-or-uncomment-lines
"nct" 'evilnc-quick-comment-or-uncomment-to-the-line
"ncy" 'evilnc-copy-and-comment-lines
"ncp" 'evilnc-comment-or-uncomment-paragraphs
"ncr" 'comment-or-uncomment-region
"nci" 'evilnc-toggle-invert-comment-line-by-line
"ncc" 'evilnc-comment-operator))))

(defun spacemacs/init-evil-org-mode ()
(use-package evil-org
:commands evil-org-mode
Expand Down
1 change: 1 addition & 0 deletions spacemacs/extensions/evil-nerd-commenter
Submodule evil-nerd-commenter added at c54cee

0 comments on commit ad091fb

Please sign in to comment.