summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-09-01 00:06:51 -0400
committerKyle Meyer <kyle@kyleam.com>2015-09-01 00:06:51 -0400
commit2c04fe5ec1c87ccb16b0d32bfe0b58f8e2978afe (patch)
treea57e826db8e8c3fd4ff620df3d13421ac8aa1c00 /lisp
parentbc7fcee9a56cc46b0e6b11c88e3030f8dd21a88f (diff)
downloademacs.d-2c04fe5ec1c87ccb16b0d32bfe0b58f8e2978afe.tar.gz
Limit some avy-goto-subword-1 variants to one window
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-mail.el3
-rw-r--r--lisp/init-org.el3
2 files changed, 4 insertions, 2 deletions
diff --git a/lisp/init-mail.el b/lisp/init-mail.el
index 054dfa1..5bb4e54 100644
--- a/lisp/init-mail.el
+++ b/lisp/init-mail.el
@@ -79,7 +79,8 @@ is off."
(defun km/gnus-avy-goto-subword-and-select ()
(interactive)
- (call-interactively #'avy-goto-subword-1)
+ (let (avy-all-windows)
+ (call-interactively #'avy-goto-subword-1))
(gnus-summary-scroll-up 0))
(defun km/gnus-follow-last-message-link (copy)
diff --git a/lisp/init-org.el b/lisp/init-org.el
index 7cdb27f..b4e5eb0 100644
--- a/lisp/init-org.el
+++ b/lisp/init-org.el
@@ -471,7 +471,8 @@ displayed in the agenda."
(defun km/org-agenda-avy-goto-subword-1 ()
(interactive)
- (call-interactively #'avy-goto-subword-1)
+ (let (avy-all-windows)
+ (call-interactively #'avy-goto-subword-1))
(org-agenda-do-context-action))
(define-key km/global-org-map "a" 'org-agenda)