[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master fc93fe6 10/24: avy.el (avy-ignored-modes): New defcustom.
From: |
Oleh Krehel |
Subject: |
[elpa] master fc93fe6 10/24: avy.el (avy-ignored-modes): New defcustom. |
Date: |
Thu, 25 Jun 2015 10:17:50 +0000 |
branch: master
commit fc93fe676cc4d878fbc67ef730f7de8ca0dc44d9
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
avy.el (avy-ignored-modes): New defcustom.
* avy.el (avy-dowindows): Use `avy-ignored-modes'.
Fixes #57
---
avy.el | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/avy.el b/avy.el
index 2697eb4..9fa303b 100644
--- a/avy.el
+++ b/avy.el
@@ -130,6 +130,10 @@ When nil, punctuation chars will not be matched.
\"[!-/:address@hidden" will match all printable punctuation chars."
:type 'regexp)
+(defcustom avy-ignored-modes '(image-mode doc-view-mode pdf-view-mode)
+ "List of modes to ignore when searching for candidates.
+Typically, these modes don't use the text representation.")
+
(defface avy-lead-face-0
'((t (:foreground "white" :background "#4f57f9")))
"Face used for first non-terminating leading chars.")
@@ -371,7 +375,7 @@ multiple DISPLAY-FN invokations."
avy-all-windows)))
(dolist (wnd (avy-window-list))
(with-selected-window wnd
- (unless (memq major-mode '(image-mode doc-view-mode pdf-view-mode))
+ (unless (memq major-mode avy-ignored-modes)
,@body)))))
(defmacro avy--with-avy-keys (command &rest body)
- [elpa] master updated (98073fe -> f727b53), Oleh Krehel, 2015/06/25
- [elpa] master fc93fe6 10/24: avy.el (avy-ignored-modes): New defcustom.,
Oleh Krehel <=
- [elpa] master 1350ab3 08/24: avy.el (avy-goto-char-in-line): Quote char, Oleh Krehel, 2015/06/25
- [elpa] master 27b3da3 11/24: avy.el (avy-goto-char-in-line): Fix to this window, Oleh Krehel, 2015/06/25
- [elpa] master 7b0ba80 19/24: avy.el (avy-style): Switch the default from 'pre to 'at-full, Oleh Krehel, 2015/06/25
- [elpa] master 8d38a89 23/24: avy.el (avy-goto-char-timer): Obey avy-styles-alist, Oleh Krehel, 2015/06/25
- [elpa] master 9ddde6d 06/24: avy.el (avy--overlay-at-full): Improve, Oleh Krehel, 2015/06/25
- [elpa] master 44d76b9 22/24: Bump version to 0.3.0, Oleh Krehel, 2015/06/25
- [elpa] master 791c16c 02/24: avy.el (avy-goto-char-in-line): New command, Oleh Krehel, 2015/06/25
- [elpa] master 6dfa445 12/24: README.md: Mention a custom-command tutorial, Oleh Krehel, 2015/06/25
- [elpa] master 7376a0c 18/24: avy.el (avy--overlay-at-full): Fixup (for overlays-in), Oleh Krehel, 2015/06/25
- [elpa] master 15c7f9f 17/24: targets/avy-init.el: Use the new checkdoc-file, Oleh Krehel, 2015/06/25