Browse Source

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

custom
Amir Dekel 4 years ago
committed by GitHub
parent
commit
8a3b557d45
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CHANGELOG.md
  2. 8
      core/prelude-ui.el

2
CHANGELOG.md

@ -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)

8
core/prelude-ui.el

@ -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
Loading…
Cancel
Save