[#1335] Workaround for which-key display bug (#1349)

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

@ -19,6 +19,8 @@
### Bugs fixed
* Fix `company` still being visible in the mode line.
* [#1335](https://github.com/bbatsov/prelude/issues/1335): Workaround
for `which-key` bug causing display issues in clients to `emacs --daemon`.
* Fix **Edit on GitHub** link in ReadTheDocs site.
## 1.1.0 (2021-02-14)

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