[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-goggles 1ffd97d6b8 102/225: add support for evil-nerd
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-goggles 1ffd97d6b8 102/225: add support for evil-nerd-commenter |
Date: |
Wed, 12 Jan 2022 08:59:00 -0500 (EST) |
branch: elpa/evil-goggles
commit 1ffd97d6b89f1e2efa00c644ddcc342482b31e2f
Author: Dickby <felix.dick@web.de>
Commit: Evgeni Kolev <evgenysw@gmail.com>
add support for evil-nerd-commenter
---
README.md | 2 +-
evil-goggles.el | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 9988c4fb2f..18b76019f1 100644
--- a/README.md
+++ b/README.md
@@ -66,7 +66,7 @@ evil-goggles
#### evil plugins with hint
- surround [evil-surround](https://github.com/timcharper/evil-surround)
-- commentary [evil-commentary](https://github.com/linktohack/evil-commentary)
+- comment [evil-commentary](https://github.com/linktohack/evil-commentary) and
[evil-nerd-commenter](https://github.com/redguardtoo/evil-nerd-commenter)
- replace with register
[evil-ReplaceWithRegister](https://github.com/Dewdrops/evil-ReplaceWithRegister)
## Customizations
diff --git a/evil-goggles.el b/evil-goggles.el
index 4d255cf000..e05cbcb3a2 100644
--- a/evil-goggles.el
+++ b/evil-goggles.el
@@ -594,7 +594,11 @@ COUNT BEG &OPTIONAL END TYPE REGISTER are the arguments of
the original function
(advice-add 'evil-surround-region :around
'evil-goggles--evil-surround-region-advice))
(when evil-goggles-enable-commentary
- (advice-add 'evil-commentary :around
'evil-goggles--evil-commentary-advice))
+ (cond
+ ((fboundp 'evil-commentary)
+ (advice-add 'evil-commentary :around
'evil-goggles--evil-commentary-advice))
+ ((fboundp 'evilnc-comment-operator)
+ (advice-add 'evilnc-comment-operator :around
'evil-goggles--evil-commentary-advice))))
(when evil-goggles-enable-replace-with-register
(advice-add 'evil-replace-with-register :around
'evil-goggles--evil-replace-with-register-advice)))
@@ -618,6 +622,7 @@ COUNT BEG &OPTIONAL END TYPE REGISTER are the arguments of
the original function
;; evil non-core functions
(advice-remove 'evil-surround-region
'evil-goggles--evil-surround-region-advice)
(advice-remove 'evil-commentary 'evil-goggles--evil-commentary-advice)
+ (advice-remove 'evilnc-comment-operator
'evil-goggles--evil-commentary-advice)
(advice-remove 'evil-replace-with-register
'evil-goggles--evil-replace-with-register-advice))))
(provide 'evil-goggles)
- [nongnu] elpa/evil-goggles 10285be578 073/225: Improve doc for on/off custom vars, (continued)
- [nongnu] elpa/evil-goggles 10285be578 073/225: Improve doc for on/off custom vars, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 126b9f77aa 076/225: Update README.md, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles d2dfe823d5 077/225: Remove deprecated variable evil-goggles-faces-alist, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles bb49e3a001 078/225: Make travis catch compilation warnings, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 5b9a3af1af 080/225: Make pasting from a register show the goggles overlay, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 3d71c2c24c 081/225: Add support for evil-set-marker, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 2b7331aa62 082/225: Make checkdoc happy, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 7aaddd2d84 092/225: Use `evil-test-helpers` for testing, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 8738d28e48 091/225: Improve doc, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 02d649ccde 101/225: Enable undo/redo by default, it's no longer experimental, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 1ffd97d6b8 102/225: add support for evil-nerd-commenter,
ELPA Syncer <=
- [nongnu] elpa/evil-goggles 33ea1247a7 109/225: Add helper to make evil-goggles use magit-diff-* faces, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles e14b865d80 114/225: Don't ignore foreground color when not pulsing. Fix #16, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 856cb548c3 123/225: Define per-action durations, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 8b3889332c 126/225: Use new funcs/macros which support duration per operation, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 90da624f36 115/225: Improve docs, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 92d614e731 119/225: Display the hint after indenting and "replacing with register" #7, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles c7e3f6ff17 116/225: Remove incorrectly commited snippet, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 4777cd7849 121/225: Show hint after indenting, not before #7, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 287491d0a0 124/225: Add WIP support for per-action durations, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles f5e98355f4 135/225: Use one function for `evil-paste-after` and `evil-paste-before` advices, ELPA Syncer, 2022/01/12