[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-nerd-commenter d03db1baef 066/235: update doc on comm
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-nerd-commenter d03db1baef 066/235: update doc on comment style |
Date: |
Thu, 6 Jan 2022 02:59:35 -0500 (EST) |
branch: elpa/evil-nerd-commenter
commit d03db1baefc8d4a8d86bf0faa19e398d0bdecf84
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>
update doc on comment style
---
README.org | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/README.org b/README.org
index 0de4581cea..a1f132582c 100644
--- a/README.org
+++ b/README.org
@@ -123,7 +123,6 @@ For example:
(global-set-key (kbd "C-c C-t C-l") 'evilnc-copy-to-line)
#+END_SRC
-
*** 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 be influenced.
@@ -201,8 +200,21 @@ Example 5: ",,ao" to comment out the current symbol, or
",,aW" to comment out th
Example 6: ",,w" comments to the beginning of the next word, ",,e" to the end
of the next word, ",,b" to the beginning of the previous word.
-* Advanced evil tips
-You can yank to line 99 using hot key "y99G" or "y99gg". That's some awesome
feature in evil-mode. Please read the vim manual on "text objects and motions".
You will find more useful tips.
+* Tips
+** Tip 1, Yank in evil-mode
+You can yank to line 99 using hot key "y99G" or "y99gg". That's the awesome
feature from evil-mode. Please read vim manual on "text objects and motions"
for more details.
+** Tip 2, change comment style
+For example, use double slashes (//) instead of slash-stars (/* ... */) in
c-mode.
+
+Insert below code into your ~/.emacs:
+#+BEGIN_SRC elisp
+(add-hook 'c-mode-common-hook
+ (lambda ()
+ ;; Preferred comment style
+ (setq comment-start "// "
+ comment-end "")))
+#+END_SRC
+Thanks for Andrew Pennebaker (aka mcandre) providing this tip.
* Contact me
You can report bugs at [[https://github.com/redguardtoo/evil-nerd-commenter]].
My email is <chenbin.sh@gmail.com>.
- [nongnu] elpa/evil-nerd-commenter 229ed115d2 041/235: Streamlined evil section, (continued)
- [nongnu] elpa/evil-nerd-commenter 229ed115d2 041/235: Streamlined evil section, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter c05e0ff2a4 045/235: Added "comment to line" evil example, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 96093a934d 049/235: fixed: eval-expression hotkey occupied, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter dcaf985835 051/235: fixed: v1.2.2 and v1.2.1 cannot be installed, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter da42daecb7 055/235: new: copy and kill to specific line for non-evil users, v 1.2.5, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 9f15aec3ce 056/235: support negative argument v1.2.6, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 2ac5d14f34 060/235: Merge pull request #21 from mswift42/master, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter cc31b0a602 059/235: Fixed type in save-excursion., ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter adb8ba60de 062/235: minor wording update, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 9450c91c71 063/235: Bufgix in evilnc--in-comment-p, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter d03db1baef 066/235: update doc on comment style,
ELPA Syncer <=
- [nongnu] elpa/evil-nerd-commenter 277ea53931 067/235: Fixed uncommenting line "spilling" to next line, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 5f09387d60 069/235: doc updated v1.2.9, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter c156331ed2 075/235: better comment to the line, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter a5ec49a54e 079/235: ad for evil-matchit, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 336ce1ab67 083/235: readme on using evil-leader, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 7ec8564adc 082/235: optimize code a little bit, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 1cff8e027d 084/235: updated README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 20a242a085 087/235: tweak README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 10dd7f8f1d 090/235: Merge branch 'tuhdo-master', ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter c2d8cd947e 089/235: remove some interacitve hint and fixed some bug, ELPA Syncer, 2022/01/06