[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master b522bfe 023/110: avy.el (avy-resume): Add
From: |
Oleh Krehel |
Subject: |
[elpa] master b522bfe 023/110: avy.el (avy-resume): Add |
Date: |
Sat, 11 May 2019 10:15:36 -0400 (EDT) |
branch: master
commit b522bfe320ac71d50baa075ae8be7e06c6594816
Author: justbur <address@hidden>
Commit: Oleh Krehel <address@hidden>
avy.el (avy-resume): Add
Holds last command avy command after user input. This is a quick way to
bring back the same markers after a jump.
Fixes #157
---
avy.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/avy.el b/avy.el
index 3f0bef0..e076e1c 100644
--- a/avy.el
+++ b/avy.el
@@ -475,6 +475,10 @@ multiple DISPLAY-FN invokations."
(unless (memq major-mode avy-ignored-modes)
,@body)))))
+(defun avy-resume ()
+ "Stub to hold last avy command.
+Commands using `avy-with' macro can be resumed.")
+
(defmacro avy-with (command &rest body)
"Set `avy-keys' according to COMMAND and execute BODY.
Set `avy-style' according to COMMMAND as well."
@@ -485,6 +489,10 @@ Set `avy-style' according to COMMMAND as well."
(avy-style (or (cdr (assq ',command avy-styles-alist))
avy-style)))
(setq avy-action nil)
+ (setf (symbol-function 'avy-resume)
+ (lambda ()
+ (interactive)
+ ,@body))
,@body))
(defun avy-action-goto (pt)
- [elpa] master d609eb9 033/110: Add avy-goto-word-0-below and avy-goto-word-0-above, (continued)
- [elpa] master d609eb9 033/110: Add avy-goto-word-0-below and avy-goto-word-0-above, Oleh Krehel, 2019/05/11
- [elpa] master b8d7163 032/110: avy.el (avy-action-goto): Add raise-frame, Oleh Krehel, 2019/05/11
- [elpa] master 07153e4 026/110: Add kill and save region functionality., Oleh Krehel, 2019/05/11
- [elpa] master dd112c8 027/110: avy.el (avy-goto-subword-1): Check char-after, Oleh Krehel, 2019/05/11
- [elpa] master 0c30cdb 034/110: avy.el (avy-action-yank): Add and bind to "y", Oleh Krehel, 2019/05/11
- [elpa] master c911850 031/110: avy.el (avy--overlay-at-full): Fix for visual-line-mode, Oleh Krehel, 2019/05/11
- [elpa] master 5515f28 021/110: Allow using symbols instead of words in word cmds, Oleh Krehel, 2019/05/11
- [elpa] master a911903 029/110: avy.el (avy-goto-word-1): Work for "^A"-"^Z", Oleh Krehel, 2019/05/11
- [elpa] master a5fb936 028/110: avy.el (avy-resume): Make it show up in M-x, Oleh Krehel, 2019/05/11
- [elpa] master 20ecb9b 024/110: Use flyspell if its minor mode is active, Oleh Krehel, 2019/05/11
- [elpa] master b522bfe 023/110: avy.el (avy-resume): Add,
Oleh Krehel <=
- [elpa] master e460d7e 025/110: avy.el (flyspell-correct-word-before-point): Declare, Oleh Krehel, 2019/05/11
- [elpa] master 05a5003 022/110: avy.el: Fix linum-related compile warnings, Oleh Krehel, 2019/05/11
- [elpa] master 430d750 019/110: avy.el (avy--line-cands): Split away from avy--line, Oleh Krehel, 2019/05/11
- [elpa] master 0f5e99b 030/110: avy.el: Use next-char-property-change, not next-overlay-change, Oleh Krehel, 2019/05/11
- [elpa] master 33af738 017/110: avy.el (avy-goto-word-1-above): Add, Oleh Krehel, 2019/05/11
- [elpa] master 105efc8 037/110: avy.el (avy-action-copy): Copy line for avy-goto-line, Oleh Krehel, 2019/05/11
- [elpa] master 4e4c488 020/110: Add avy-linum-mode, Oleh Krehel, 2019/05/11
- [elpa] master d644be1 016/110: avy.el (avy-goto-char-2-above): Simplify, Oleh Krehel, 2019/05/11
- [elpa] master 4dcf0a9 018/110: avy.el (avy-goto-char-2): Translate "RET" to "C-j", Oleh Krehel, 2019/05/11
- [elpa] master ba950a0 015/110: avy.el (avy-goto-char-2-above): Add, Oleh Krehel, 2019/05/11