Skip to content

Commit

Permalink
Add aw-select-always option
Browse files Browse the repository at this point in the history
  • Loading branch information
deftsp committed Dec 2, 2019
1 parent edbbb1b commit 5476475
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ace-window.el
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ Use M-0 `ace-window' to toggle this value."
(const :tag "single char" 'char)
(const :tag "full path" 'path)))

(defcustom aw-select-always nil
"When non-nil, `ace-window' will activate ace-window-ness even for on window.
This will make `ace-window' act different from `other-window' for
one or two windows."
:type 'boolean)

(defcustom aw-dispatch-always nil
"When non-nil, `ace-window' will issue a `read-char' even for one window.
This will make `ace-window' act different from `other-window' for
Expand Down Expand Up @@ -537,7 +543,7 @@ Amend MODE-LINE to the mode line for the duration of the selection."
(wnd-list (aw-window-list))
window)
(setq window
(cond ((<= (length wnd-list) 1)
(cond ((and (not aw-select-always) (<= (length wnd-list) 1))
(when aw-dispatch-always
(setq aw-action
(unwind-protect
Expand Down

0 comments on commit 5476475

Please sign in to comment.