Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aw-select-always option #185

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -534,7 +540,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