Skip to content

Commit c092960

Browse files
committed
Add aw-select-always option
1 parent 7003c88 commit c092960

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
@@ -534,7 +540,7 @@ Amend MODE-LINE to the mode line for the duration of the selection."
534540
(wnd-list (aw-window-list))
535541
window)
536542
(setq window
537-
(cond ((<= (length wnd-list) 1)
543+
(cond ((and (not aw-select-always) (<= (length wnd-list) 1))
538544
(when aw-dispatch-always
539545
(setq aw-action
540546
(unwind-protect

0 commit comments

Comments
 (0)