Skip to content

Commit

Permalink
neomacs: fix which-key window size when in daemon
Browse files Browse the repository at this point in the history
Based on justbur/emacs-which-key#306 and the linked refs
  • Loading branch information
bergheim committed Jan 24, 2024
1 parent 31885c9 commit 161dd6a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions .config/neodoom/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@

(defalias 'yes-or-no-p 'y-or-n-p)
(defconst IS-MAC (eq system-type 'darwin))
(defconst IS-LINUX (memq system-type '(gnu gnu/linux gnu/kfreebsd berkeley-unix)))

(setq lock-directory (bergheim/get-and-ensure-data-dir "lock/"))

Expand Down
13 changes: 8 additions & 5 deletions .config/neodoom/modules/base.el
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,15 @@

(use-package which-key
:demand t
:custom
(which-key-idle-delay 0.3)
(which-key-idle-secondary-delay 0.3)
;; sort A a B b not A B a b
(which-key-sort-order 'which-key-key-order-alpha)
;; this fixes which-key window size for me in daemon mode
(which-key-allow-imprecise-window-fit nil)
:config
(which-key-mode)
(setq which-key-idle-delay 0.3)
;; sort A a B b not A B ab
(setq which-key-sort-order 'which-key-key-order-alpha)
(setq which-key-idle-secondary-delay 0.3))
(which-key-mode))

(defun bergheim/toggle-big-font-mode (&optional level)
"Toggle big font mode."
Expand Down

0 comments on commit 161dd6a

Please sign in to comment.