Add hide/show comments on SPC c h
This commit is contained in:
parent
fd07fd47ef
commit
66d9f38a45
|
@ -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 |
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue