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

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

[nongnu] elpa/evil-nerd-commenter ef643d604d 007/235: updated README


From: ELPA Syncer
Subject: [nongnu] elpa/evil-nerd-commenter ef643d604d 007/235: updated README
Date: Thu, 6 Jan 2022 02:59:30 -0500 (EST)

branch: elpa/evil-nerd-commenter
commit ef643d604ddae3185450a20b2a583855ac17f5da
Author: chen bin <chenbin.sh@gmail.com>
Commit: chen bin <chenbin.sh@gmail.com>

    updated README
---
 README.org | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/README.org b/README.org
index 5aae307f57..303ac9cbeb 100644
--- a/README.org
+++ b/README.org
@@ -6,22 +6,25 @@ As I know, the 
[[http://www.vim.org/scripts/script.php?script_id=1218][Nerd Comm
 That's why I develop this Nerd Commenter simulator for Emacs people.
 * Why evil-nerd-commenter is better? Show me a simple use case!
 Say you want to comment out nine lines. Instead pressing "C-space M-9 C-n 
M-;", now you can press "M-9 M-;" or ",9ci".
+
+The key point is you need NOT mark any text to comment line(s)!
 * Install
 evil-nerd-commenter is already uploaded to [[http://marmalade-repo.org/]]. So 
the best way to install it is using Emacs' package manager.
 * Set up
 Nothing to set up.
 
 You may add below line into ~/.emacs which use hotkey "M-;" to toggle comment:
-#+BEGIN_SRC elisp
-(evilnc-default-hotkeys)
+#+BEGIN_SRC lisp
+(global-set-key "\M-;" 'evilnc-comment-or-uncomment-lines)
+(global-set-key "\M-:" 'evilnc-comment-or-uncomment-to-the-line)
 #+END_SRC
 
-The advantage of use "M-;" is you can set mark on the first line and scroll 
serveral pages down and comment all the lines in that region by "M-;".
+The advantage of use "M-;" is you can set mark on the first line and scroll 
several pages down and comment all the lines in that region by "M-;".
 
 I prefer vi key binds. So I also use 
[[http://emacswiki.org/emacs/Evil][evil-mode]] and evil-leader.
 
 Here is my configuration for evil-mode:
-#+BEGIN_SRC elisp
+#+BEGIN_SRC lisp
 (require 'evil)
 (require 'evil-leader)
 (setq evil-leader/leader "," evil-leader/in-all-states t)



reply via email to

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