Add hide/show comments on SPC c h

This commit is contained in:
syl20bnr 2016-10-17 15:25:21 -04:00
parent fd07fd47ef
commit 66d9f38a45
2 changed files with 7 additions and 0 deletions

View File

@ -2814,6 +2814,7 @@ Comments are handled by [[https://github.com/redguardtoo/evil-nerd-commenter][ev
| Key Binding | Description |
|-------------+---------------------------|
| ~SPC ;~ | comment operator |
| ~SPC c h~ | hide/show comments |
| ~SPC c l~ | comment lines |
| ~SPC c L~ | invert comment lines |
| ~SPC c p~ | comment paragraphs |

View File

@ -15,6 +15,7 @@
adaptive-wrap
auto-highlight-symbol
column-enforce-mode
hide-comnt
highlight-indentation
highlight-numbers
highlight-parentheses
@ -289,6 +290,11 @@
:evil-leader "t C-8"))
:config (spacemacs|diminish column-enforce-mode "" "8")))
(defun spacemacs-editing-visual/init-hide-comnt ()
(use-package hide-comnt
:commands hide/show-comments-toggle
:init (spacemacs/set-leader-keys "ch" 'hide/show-comments-toggle)))
(defun spacemacs-editing-visual/init-highlight-indentation ()
(use-package highlight-indentation
:defer t