[] Workaround for which-key display bug ()

This commit is contained in:
Amir Dekel 2022-04-18 12:07:12 +02:00 committed by GitHub
parent ab85208b7b
commit 8a3b557d45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -83,8 +83,12 @@
(load-theme prelude-theme t))
;; show available keybindings after you start typing
(require 'which-key)
(which-key-mode +1)
;; add to hook when running as a daemon as a workaround for a
;; which-key bug
;; https://github.com/justbur/emacs-which-key/issues/306
(if (daemonp)
(add-hook 'server-after-make-frame-hook 'which-key-mode)
(which-key-mode +1))
(provide 'prelude-ui)
;;; prelude-ui.el ends here