aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Burkett2019-11-27 12:00:57 -0500
committerJustin Burkett2019-11-27 12:00:57 -0500
commitdcb9820c2decd326465ec3dfc792d30429cec564 (patch)
treebd426a672c4c21e4c9f4ad4f2adae8763631128d
parenta916c9ae28e961922d8d8419e633f9321fcdbe53 (diff)
downloademacs-dcb9820c2decd326465ec3dfc792d30429cec564.tar.gz
emacs-dcb9820c2decd326465ec3dfc792d30429cec564.zip
Default to imprecise window fitting on terminal
See #225.
-rw-r--r--which-key.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/which-key.el b/which-key.el
index 88775d4b839..1a0f5c68f65 100644
--- a/which-key.el
+++ b/which-key.el
@@ -341,12 +341,13 @@ a percentage out of the frame's height."
341 :group 'which-key 341 :group 'which-key
342 :type 'integer) 342 :type 'integer)
343 343
344(defcustom which-key-allow-imprecise-window-fit nil 344(defcustom which-key-allow-imprecise-window-fit (not (display-graphic-p))
345 "If non-nil allow which-key to use a less intensive method of 345 "If non-nil allow which-key to use a less intensive method of
346fitting the popup window to the buffer. If you are noticing lag 346fitting the popup window to the buffer. If you are noticing lag
347when the which-key popup displays turning this on may help. 347when the which-key popup displays turning this on may help.
348 348
349See https://github.com/justbur/emacs-which-key/issues/130" 349See https://github.com/justbur/emacs-which-key/issues/130
350and https://github.com/justbur/emacs-which-key/issues/225."
350 :group 'which-key 351 :group 'which-key
351 :type 'boolean) 352 :type 'boolean)
352 353