branch: elpa/evil-nerd-commenter
commit ccb31ba534a3682f0797d64ac6d49ced383c040d
Author: Chen Bin <[email protected]>
Commit: Chen Bin <[email protected]>
finalize doc v1.2.7
---
README.org | 14 ++++++++++++--
evil-nerd-commenter-demo.gif | Bin 691836 -> 691837 bytes
evil-nerd-commenter-pkg.el | 2 +-
evil-nerd-commenter.el | 2 +-
pkg.sh | 2 +-
5 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/README.org b/README.org
index 03599447b1..b8665b8675 100644
--- a/README.org
+++ b/README.org
@@ -1,4 +1,4 @@
-* evil-nerd-commenter (current version 1.2.6)
+* evil-nerd-commenter (current version 1.2.7)
*Please note this program could be used independently without evil-mode!*
@@ -93,7 +93,7 @@ Here are available commands. They are not dependent on
[[http://emacswiki.org/em
- 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
- evilnc-copy-to-line :: Copy from the current line to the user specified
line, *for non-evil user only, you need set hot key for it*
-- evilnc-toggle-invert-comment-line-by-line :: toggle flag
evilnc-invert-comment-line-by-line. When this flag is true, the command
"evilnc-comment-or-uncomment-lines", "evilnc-comment-or-uncomment-to-the-line",
and "evilnc-comment-or-uncomment-paragraphs" will invert each line's comment
status.
+- evilnc-toggle-invert-comment-line-by-line :: toggle flag
evilnc-invert-comment-line-by-line. When this flag is true, the command
"evilnc-comment-or-uncomment-lines", "evilnc-comment-or-uncomment-to-the-line",
and "evilnc-comment-or-uncomment-paragraphs" behavior will. *They will invert
each line's comment status.*
- evilnc-kill-to-line :: Kill from the current line to the user specified
line, *for non-evil user only, you need set hot key for it*
Example 1:
@@ -118,6 +118,16 @@ var myJson={
}
#+END_SRC
+Example 6:
+Say there are two lines of javascript code,
+#+BEGIN_SRC javascript
+if(flag==true){ doSomething(); }
+//if(flag==false){ doSomething(); }
+#+END_SRC
+The first line is production code. The second line is your debug code. You
want to invert the comment status of these two lines (for example, comment out
first line and uncomment the second line) for debug purpose.
+
+All you need to is "M-x evilnc-toggle-invert-comment-line-by-line" then "C-u 2
evilnc-comment-or-uncomment-lines". The first command turn on some flag, so the
behavior of (un)commenting is different.
+
* Evil usage
If you use [[http://emacswiki.org/emacs/Evil][evil-mode]], you get an operator
that works with all the usual
[[http://vimdoc.sourceforge.net/htmldoc/motion.html#text-objects][text objects
and motions]].
diff --git a/evil-nerd-commenter-demo.gif b/evil-nerd-commenter-demo.gif
index 144102cf3f..653bcdc120 100644
Binary files a/evil-nerd-commenter-demo.gif and b/evil-nerd-commenter-demo.gif
differ
diff --git a/evil-nerd-commenter-pkg.el b/evil-nerd-commenter-pkg.el
index 57015839ac..6bf7fb747b 100644
--- a/evil-nerd-commenter-pkg.el
+++ b/evil-nerd-commenter-pkg.el
@@ -1,2 +1,2 @@
-(define-package "evil-nerd-commenter" "1.2.6"
+(define-package "evil-nerd-commenter" "1.2.7"
"Comment/uncomment lines efficiently. Like Nerd Commenter in
Vim")
diff --git a/evil-nerd-commenter.el b/evil-nerd-commenter.el
index 742bbc4651..ae59aa829b 100644
--- a/evil-nerd-commenter.el
+++ b/evil-nerd-commenter.el
@@ -4,7 +4,7 @@
;; Author: Chen Bin <[email protected]>
;; URL: http://github.com/redguardtoo/evil-nerd-commenter
-;; Version: 1.2.6
+;; Version: 1.2.7
;; Keywords: commenter vim line evil
;;
;; This file is not part of GNU Emacs.
diff --git a/pkg.sh b/pkg.sh
index 9db4fb37ca..3371b7317b 100755
--- a/pkg.sh
+++ b/pkg.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-pkg=evil-nerd-commenter-1.2.6
+pkg=evil-nerd-commenter-1.2.7
mkdir $pkg
cp README.org $pkg
cp *.el $pkg