Update README.md
This commit is contained in:
@@ -419,7 +419,7 @@ You can also add the following code to enable commenting and uncommenting by pre
|
|||||||
``` emacs-lisp
|
``` emacs-lisp
|
||||||
(with-eval-after-load "evil"
|
(with-eval-after-load "evil"
|
||||||
(evil-define-operator my-evil-comment-or-uncomment (beg end)
|
(evil-define-operator my-evil-comment-or-uncomment (beg end)
|
||||||
"Toggle comment from BEG to END."
|
"Toggle comment for the region between BEG and END."
|
||||||
(interactive "<r>")
|
(interactive "<r>")
|
||||||
(comment-or-uncomment-region beg end))
|
(comment-or-uncomment-region beg end))
|
||||||
(evil-define-key 'normal 'global (kbd "gc") 'my-evil-comment-or-uncomment))
|
(evil-define-key 'normal 'global (kbd "gc") 'my-evil-comment-or-uncomment))
|
||||||
|
|||||||
Reference in New Issue
Block a user