emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ace-window 74c9cef 25/92: ace-window.el (aw-dispatch-wh


From: Stefan Monnier
Subject: [elpa] externals/ace-window 74c9cef 25/92: ace-window.el (aw-dispatch-when-more-than): New defcustom
Date: Wed, 17 Mar 2021 18:39:15 -0400 (EDT)

branch: externals/ace-window
commit 74c9cef04f8c2681f8adcf6b1d8573ca66c0518e
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    ace-window.el (aw-dispatch-when-more-than): New defcustom
    
    Fixes #109
---
 ace-window.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ace-window.el b/ace-window.el
index 1e3b40f..1d750e3 100644
--- a/ace-window.el
+++ b/ace-window.el
@@ -109,6 +109,10 @@ This will make `ace-window' act different from 
`other-window' for
   one or two windows."
   :type 'boolean)
 
+(defcustom aw-dispatch-when-more-than 2
+  "If the number of windows is more than this, activate ace-window-ness."
+  :type 'integer)
+
 (defcustom aw-reverse-frame-list nil
   "When non-nil `ace-window' will order frames for selection in
 the reverse of `frame-list'"
@@ -317,7 +321,7 @@ Amend MODE-LINE to the mode line for the duration of the 
selection."
                    (when (eq aw-action 'exit)
                      (setq aw-action nil)))
                  (or (car wnd-list) start-window))
-                ((and (= (length wnd-list) 2)
+                ((and (<= (length wnd-list) aw-dispatch-when-more-than)
                       (not aw-dispatch-always)
                       (not aw-ignore-current))
                  (let ((wnd (next-window nil nil next-window-scope)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]