[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-goggles 6d2ce52faa 200/225: Add hint for `m`
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-goggles 6d2ce52faa 200/225: Add hint for `m` |
Date: |
Wed, 12 Jan 2022 08:59:08 -0500 (EST) |
branch: elpa/evil-goggles
commit 6d2ce52faae751db789874face947f6d37c6b194
Author: Evgeni Kolev <evgenysw@gmail.com>
Commit: Evgeni Kolev <evgenysw@gmail.com>
Add hint for `m`
---
evil-goggles.el | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/evil-goggles.el b/evil-goggles.el
index efb1b2de6c..79f98f95b2 100644
--- a/evil-goggles.el
+++ b/evil-goggles.el
@@ -425,6 +425,19 @@ OFF-BY-DEFAULT if non-nil will set the switch to `nil'"
evil-goggles-enable-replace-with-register "If non-nil, enable replace with
register support"
evil-goggles-replace-with-register-face "Face for replace with register
action")
+;;; set mark
+
+(evil-goggles--define-switch-and-face
+ evil-goggles-enable-set-marker "If non-nil, enable replace with register
support"
+ evil-goggles-set-marker-face "Face for replace with register action")
+
+(defun evil-goggles--set-marker-advice (char &rest _)
+ (when (and (called-interactively-p 'interactive)
+ (<= ?a char ?z))
+ (let ((beg (line-beginning-position))
+ (end (1+ (line-end-position))))
+ (evil-goggles--show-async-hint beg end))))
+
;;; assosiation list with faces
(defvar evil-goggles--commands
@@ -442,7 +455,8 @@ OFF-BY-DEFAULT if non-nil will set the switch to `nil'"
(evil-surround-region :face evil-goggles-surround-face
:switch evil-goggles-enable-surround :advice
evil-goggles--generic-async-advice)
(evil-commentary :face evil-goggles-commentary-face
:switch evil-goggles-enable-commentary :advice
evil-goggles--generic-async-advice)
(evilnc-comment-operator :face evil-goggles-nerd-commenter-face
:switch evil-goggles-enable-nerd-commenter :advice
evil-goggles--generic-async-advice)
- (evil-replace-with-register :face evil-goggles-replace-with-register-face
:switch evil-goggles-enable-replace-with-register :advice
evil-goggles--generic-async-advice-1)))
+ (evil-replace-with-register :face evil-goggles-replace-with-register-face
:switch evil-goggles-enable-replace-with-register :advice
evil-goggles--generic-async-advice-1)
+ (evil-set-marker :face evil-goggles-set-marker-face
:switch evil-goggles-enable-set-marker :advice
evil-goggles--set-marker-advice)))
;;; minor mode defined below ;;;
- [nongnu] elpa/evil-goggles 5c313522cf 128/225: Don't call deprecated functions, (continued)
- [nongnu] elpa/evil-goggles 5c313522cf 128/225: Don't call deprecated functions, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 03cb67fc4c 125/225: Remove duplicated line, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 70ed667698 131/225: Fix compile warnings, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles ea0102bcf5 133/225: Use "post" hint when commenting, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 3f6dd85657 151/225: Update README, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 5bd77428e3 142/225: Cleanup internal API for showing a vertical hint once, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles c515477fd4 160/225: Clarify docs for evil-goggles-async-duration and evil-goggles-blocking-duration, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 674a1be5aa 188/225: Merge branch 'hint-only-when-command-is-interactive'. Close #18, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 946598059f 204/225: Fix compilation warnings, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles b756edf31e 182/225: Show hint on u/redo after inserting text with "O", ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 6d2ce52faa 200/225: Add hint for `m`,
ELPA Syncer <=
- [nongnu] elpa/evil-goggles 8aa26e9671 205/225: CI: run package-lint, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 77a8bb1785 207/225: Update README, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 87722a5b46 210/225: Add hint for `D`, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles d7876e6566 218/225: Drop unnecessary helper macro, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 636b263361 215/225: Make async overlay cleanup more robust, without using pre-command-hook, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 12cfb80230 104/225: Use separate config, face and advice for nerd-commenter and commentary. Refs #13, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 75d124851f 156/225: Update README.md, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles d4b3d873dc 155/225: Update CI setup to run evil's tests unaltered, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 761abb7b2f 145/225: Hint duration should be configured via three variables, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles f282263af4 120/225: Show visual hint after shift left/right, not before #7, ELPA Syncer, 2022/01/12