Skip to content

Commit 5476475

Browse files
committed
Add aw-select-always option
1 parent edbbb1b commit 5476475

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ace-window.el

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ Use M-0 `ace-window' to toggle this value."
120120
(const :tag "single char" 'char)
121121
(const :tag "full path" 'path)))
122122

123+
(defcustom aw-select-always nil
124+
"When non-nil, `ace-window' will activate ace-window-ness even for on window.
125+
This will make `ace-window' act different from `other-window' for
126+
one or two windows."
127+
:type 'boolean)
128+
123129
(defcustom aw-dispatch-always nil
124130
"When non-nil, `ace-window' will issue a `read-char' even for one window.
125131
This will make `ace-window' act different from `other-window' for
@@ -537,7 +543,7 @@ Amend MODE-LINE to the mode line for the duration of the selection."
537543
(wnd-list (aw-window-list))
538544
window)
539545
(setq window
540-
(cond ((<= (length wnd-list) 1)
546+
(cond ((and (not aw-select-always) (<= (length wnd-list) 1))
541547
(when aw-dispatch-always
542548
(setq aw-action
543549
(unwind-protect

0 commit comments

Comments
 (0)