emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil-nerd-commenter 336ce1ab67 083/235: readme on using ev


From: ELPA Syncer
Subject: [nongnu] elpa/evil-nerd-commenter 336ce1ab67 083/235: readme on using evil-leader
Date: Thu, 6 Jan 2022 02:59:37 -0500 (EST)

branch: elpa/evil-nerd-commenter
commit 336ce1ab673249bf9cb504635e2e85bfa2aeea9c
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>

    readme on using evil-leader
---
 README.org | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/README.org b/README.org
index 56051ce9bb..be1c05f172 100644
--- a/README.org
+++ b/README.org
@@ -228,6 +228,29 @@ Thanks for Andrew Pennebaker (aka mcandre) providing this 
tip.
 Please check my project 
[[https://github.com/redguardtoo/evil-matchit][evil-matchit]]. You can press 
",si" to select a region between tags and press "M-/" to comment the region.
 
 All the popular programming languages are supported;
+** Tip 4, use evil-leader if you prefer the "\" as the leader character in 
evil-mode
+- Install [[https://github.com/cofi/evil-leader][evil-leader according to its 
README]].
+- Remove line "(evilnc-default-hotkeys)" from your ~/.emacs.
+- Insert below code into you ~/.emacs,
+#+BEGIN_SRC elisp
+(global-set-key (kbd "M-;") 'evilnc-comment-or-uncomment-lines)
+(global-set-key (kbd "C-c l") 'evilnc-quick-comment-or-uncomment-to-the-line)
+(global-set-key (kbd "C-c c") 'evilnc-copy-and-comment-lines)
+(global-set-key (kbd "C-c p") 'evilnc-comment-or-uncomment-paragraphs)
+
+(require 'evil-leader)
+(global-evil-leader-mode)
+(evil-leader/set-key
+  "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
+  )
+#+END_SRC
+
 
 * Contact me
 You can report bugs at [[https://github.com/redguardtoo/evil-nerd-commenter]].



reply via email to

[Prev in Thread] Current Thread [Next in Thread]