[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-goggles 04d66ddc20 201/225: Add hint for `q`
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-goggles 04d66ddc20 201/225: Add hint for `q` |
Date: |
Wed, 12 Jan 2022 08:59:08 -0500 (EST) |
branch: elpa/evil-goggles
commit 04d66ddc20b05ec7fe5fe36377f72fb34492cef6
Author: Evgeni Kolev <evgenysw@gmail.com>
Commit: Evgeni Kolev <evgenysw@gmail.com>
Add hint for `q`
---
evil-goggles.el | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/evil-goggles.el b/evil-goggles.el
index 79f98f95b2..fdacecdb4f 100644
--- a/evil-goggles.el
+++ b/evil-goggles.el
@@ -438,6 +438,26 @@ OFF-BY-DEFAULT if non-nil will set the switch to `nil'"
(end (1+ (line-end-position))))
(evil-goggles--show-async-hint beg end))))
+;;; record macro
+
+(evil-goggles--define-switch-and-face
+ evil-goggles-enable-record-macro "If non-nil, enable record macro support"
+ evil-goggles-record-macro-face "Face for record macro action")
+
+(defun evil-goggles--record-macro-advice (&rest _)
+ (let ((beg (line-beginning-position))
+ (end (1+ (line-end-position)))
+ (was-defining-kbd-macro defining-kbd-macro)
+ (evil-goggles--hint-on-empty-lines t))
+
+ ;; show hint before starting to record a macro
+ (unless was-defining-kbd-macro
+ (evil-goggles--show-async-hint beg end))
+
+ ;; show hint when done defining the macro
+ (when was-defining-kbd-macro
+ (evil-goggles--show-async-hint beg end))))
+
;;; assosiation list with faces
(defvar evil-goggles--commands
@@ -456,7 +476,8 @@ OFF-BY-DEFAULT if non-nil will set the switch to `nil'"
(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-set-marker :face evil-goggles-set-marker-face
:switch evil-goggles-enable-set-marker :advice
evil-goggles--set-marker-advice)))
+ (evil-set-marker :face evil-goggles-set-marker-face
:switch evil-goggles-enable-set-marker :advice
evil-goggles--set-marker-advice)
+ (evil-record-macro :face evil-goggles-record-macro-face
:switch evil-goggles-enable-record-macro :advice
evil-goggles--record-macro-advice)))
;;; minor mode defined below ;;;
- [nongnu] elpa/evil-goggles f5e98355f4 135/225: Use one function for `evil-paste-after` and `evil-paste-before` advices, (continued)
- [nongnu] elpa/evil-goggles f5e98355f4 135/225: Use one function for `evil-paste-after` and `evil-paste-before` advices, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles d705bef9d4 134/225: Fix CI failing, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles f6519214b8 149/225: Update README.md, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 5db6848df8 154/225: Undo adds should show a blocking hint, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 440324a1ed 161/225: Silence compilation warning for unused lexical variable, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 3dce5937ac 166/225: Pulsing is no longer experimental, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 4d4465fd59 168/225: Improve logic deciding whether to pulse or not, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 3b874c7630 178/225: Set mark advice: show hint on whitespace-only lines, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles ca18c944ed 179/225: Show hint on start/stop record macro, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 943382b367 194/225: Add hints for surround, commentary, nerd commenter, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 04d66ddc20 201/225: Add hint for `q`,
ELPA Syncer <=
- [nongnu] elpa/evil-goggles b896ca797c 211/225: Add support for evil-org. Close #21, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 2186289a01 213/225: evil-goggles--show-p: no need to check evil-inhibit-operator-value, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 42456816de 015/225: Use macros to preserve "interactivity", ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles dd76fd3d28 019/225: Make sure the overlay is cleaned-up, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 1014993453 028/225: Add custom variable evil-goggles-blacklist to allow disabling individual functions, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles f29820fe98 029/225: Detect only `evil-inhibit-operator-value` into account, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 9882706667 030/225: Preserve the return value of evil-paste-*, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 253613ce66 039/225: Fix check of evil-last-paste, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 788c73d505 041/225: Make lighter configurable, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 97498ef1ba 050/225: Clarify package should be on Melpa, ELPA Syncer, 2022/01/12