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

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

[elpa] externals/frog-menu 9ea2c24 23/43: Change default grid format fun


From: Clemens Radermacher
Subject: [elpa] externals/frog-menu 9ea2c24 23/43: Change default grid format function to adjust width based on type
Date: Sun, 24 Mar 2019 05:14:47 -0400 (EDT)

branch: externals/frog-menu
commit 9ea2c2400d09ff4662a2386e22a980dd59a3f8d2
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>

    Change default grid format function to adjust width based on type
---
 frog-menu.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/frog-menu.el b/frog-menu.el
index f9c5a04..cc8f7ab 100644
--- a/frog-menu.el
+++ b/frog-menu.el
@@ -170,7 +170,11 @@ exits through an error."
   :type 'function)
 
 (defcustom frog-menu-grid-width-function
-  (lambda () (/ (frame-width) 2))
+  (lambda () (cond ((eq frog-menu-type 'avy-posframe)
+                    (/ (frame-width) 2))
+                   ((eq frog-menu-type 'avy-side-window)
+                    (frame-width))
+                   (t (frame-width))))
   "Returns the width that should be used for menu grid.
 
 Used by `frog-menu-grid-format'."



reply via email to

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