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

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

[nongnu] elpa/evil-nerd-commenter 59586d7e0b 027/235: updated doc on com


From: ELPA Syncer
Subject: [nongnu] elpa/evil-nerd-commenter 59586d7e0b 027/235: updated doc on comment paragraphs
Date: Thu, 6 Jan 2022 02:59:32 -0500 (EST)

branch: elpa/evil-nerd-commenter
commit 59586d7e0bdded8f31ea19bcae1d8f4af314ed98
Author: Chen Bin <Chen.Bin@optus.com.au>
Commit: Chen Bin <Chen.Bin@optus.com.au>

    updated doc on comment paragraphs
    
    New version 0.0.10
---
 README.org                 | 13 ++++++++++---
 evil-nerd-commenter-pkg.el |  2 +-
 evil-nerd-commenter.el     |  2 +-
 pkg.sh                     |  2 +-
 4 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/README.org b/README.org
index 12d30041f0..19f4c1de37 100644
--- a/README.org
+++ b/README.org
@@ -1,9 +1,9 @@
-* evil-nerd-commenter (current version 0.0.9)
+* evil-nerd-commenter (current version 0.0.10)
 As a developer, I often need comment/uncomment lines for debugging or adding 
some short comment in the code block.
 
 As I know, the [[http://www.vim.org/scripts/script.php?script_id=1218][Nerd 
Commenter]] for Vim is the most efficient way to doing this thing. 
Unfortunately, there is no similar plugin in Emacs.
 
-That's why I develop this Nerd Commenter simulator for Emacs people. Besides, 
I'm also adding my own utilities into this plugin. For example, I added a 
command to comment *AND* copy lines in version 0.0.9.
+That's why I develop this Nerd Commenter simulator for Emacs people. Besides, 
I'm also adding my own utilities into this plugin. For example, I added a 
command to comment *AND* copy lines in version 0.0.10.
 
 Though this program could be used *independently*, I highly recommend you use 
it with [[http://gitorious.org/evil][evil]].
 
@@ -41,16 +41,17 @@ Further explanation, the content of evilnc-default-hotkeys 
is:
   (global-set-key (kbd "M-;") 'evilnc-comment-or-uncomment-lines)
   (global-set-key (kbd "M-:") 'evilnc-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)
   (eval-after-load 'evil
     '(progn
        (define-key evil-normal-state-map ",ci" 
'evilnc-comment-or-uncomment-lines)
        (define-key evil-normal-state-map ",cl" 
'evilnc-comment-or-uncomment-to-the-line)
        (define-key evil-normal-state-map ",cc" 'evilnc-copy-and-comment-lines)
+       (define-key evil-normal-state-map ",cp" 
'evilnc-comment-or-uncomment-paragraphs)
        ))
   )
 #+END_SRC
 
-
 As you can see, the default hot key for commenting lines is "M-;" when you 
don't use [[http://emacswiki.org/emacs/Evil][evil-mode]].
 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-;". The key 
point here is you save the extra two key strikes to make marked region wrap the 
whole content of first and second line.
 
@@ -62,12 +63,14 @@ Here is my configuration for evil-mode (*OPTIONAL!* some 
people don't use evil-m
 (define-key evil-normal-state-map ",ci" 'evilnc-comment-or-uncomment-lines)
 (define-key evil-normal-state-map ",cl" 
'evilnc-comment-or-uncomment-to-the-line)
 (define-key evil-normal-state-map ",cc" 'evilnc-copy-and-comment-lines)
+(define-key evil-normal-state-map ",cp" 
'evilnc-comment-or-uncomment-paragraphs)
 #+END_SRC
 * Usage
 Here are available commands:
 - evilnc-comment-or-uncomment-lines :: comment/uncomment lines.
 - evilnc-comment-or-uncomment-to-the-line :: comment/uncomment from current 
line to the specified line.
 - evilnc-copy-and-comment-lines :: copy and paste lines, then comment out 
original lines
+- evilnc-comment-or-uncomment-paragraphs :: comment/uncomment paragraphs which 
separated by empty lines
 - evilnc-toggle-comment-empty-lines :: toggle the flag to comment/uncomment 
empty lines
 
 Example 1:
@@ -84,5 +87,9 @@ Example 4:
 
 Example 5:
 "C-u 2 M-x evilnc-copy-and-comment-lines", copy 2 lines and paste them below 
the original line. Then comment out original lines. The focus will be moved to 
the new lines.
+
+Example 6:
+"C-u 2 M-x evilnc-comment-or-uncomment-paragraphs", comment out two paragraphs.
+
 * Contact me
 You can report bugs at [[https://github.com/redguardtoo/evil-nerd-commenter]]. 
My email is <chenbin.sh@gmail.com>.
diff --git a/evil-nerd-commenter-pkg.el b/evil-nerd-commenter-pkg.el
index 3b03ee5688..46403c9bac 100644
--- a/evil-nerd-commenter-pkg.el
+++ b/evil-nerd-commenter-pkg.el
@@ -1,2 +1,2 @@
-(define-package "evil-nerd-commenter" "0.0.9"
+(define-package "evil-nerd-commenter" "0.0.10"
                 "Comment/uncomment lines efficiently. Like Nerd Commenter in 
Vim")
diff --git a/evil-nerd-commenter.el b/evil-nerd-commenter.el
index dd3f9457bc..978f8f530c 100644
--- a/evil-nerd-commenter.el
+++ b/evil-nerd-commenter.el
@@ -4,7 +4,7 @@
 
 ;; Author: Chen Bin <chenbin.sh@gmail.com>
 ;; URL: http://github.com/redguardtoo/evil-nerd-commenter
-;; Version: 0.0.9
+;; Version: 0.0.10
 ;; Keywords: commenter vim line evil
 ;;
 ;; This file is not part of GNU Emacs.
diff --git a/pkg.sh b/pkg.sh
index 8ddc6339ec..c03ee738bc 100755
--- a/pkg.sh
+++ b/pkg.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
-pkg=evil-nerd-commenter-0.0.9
+pkg=evil-nerd-commenter-0.0.10
 mkdir $pkg
 cp README.org $pkg
 cp *.el $pkg



reply via email to

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