branch: master
commit 7e4403775bfbf3070bc826c6310c07ba3e0ad609
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ace-window.el (aw-scope): new custom variable
Fixes comment by @duerrp in #1.
---
ace-window.el | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/ace-window.el b/ace-window.el
index 8a7a575..eb32898 100644
--- a/ace-window.el
+++ b/ace-window.el
@@ -57,13 +57,21 @@
:prefix "aw-")
(defcustom aw-keys '(?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9)
- "Keys for selecting window.")
+ "Keys for selecting window."
+ :group 'ace-window)
+
+(defcustom aw-scope 'global
+ "The scope used by `ace-window'."
+ :group 'ace-window
+ :type '(choice
+ (const :tag "global" global)
+ (const :tag "frame" frame)))
;;;###autoload
(defun ace-window ()
"Use function `ace-jump-mode' to switch windows."
(interactive)
- (let* ((ace-jump-mode-scope 'global)
+ (let* ((ace-jump-mode-scope aw-scope)
(visual-area-list
(sort (ace-jump-list-visual-area)
'aw-visual-area<)))