spacemacs-modeline: fix modeline if daemon is used

This commit is contained in:
Benno Fünfstück 2019-05-07 22:00:02 +02:00 committed by smile13241324
parent 42d6e143fc
commit d6b7e335ed
2 changed files with 5 additions and 1 deletions

View File

@ -533,6 +533,7 @@ Other:
- Updated =quelpa= to fix installing of some recipes on macOS
(thanks to Dieter Komendera)
- Added startup support for doom-sourcerer theme (thanks to Parker Johnson)
- Fixed modeline when started in deamon mode (thanks to Benno Fünfstück)
- Other:
- New function =configuration-layer/message= to display message in
=*Messages*= buffer (thanks to Sylvain Benner)

View File

@ -64,6 +64,10 @@
(spacemacs|add-transient-hook window-configuration-change-hook
(lambda ()
(setq spaceline-byte-compile t)
;; this must also be set in this hook because (spacemacs/compute-mode-line-height)
;; returns wrong results if it is called before the display system is initialized
;; see https://github.com/syl20bnr/spacemacs/issues/10181 for details
(setq powerline-height (spacemacs/compute-mode-line-height))
(spaceline-compile))
lazy-load-spaceline)))
(progn
@ -105,7 +109,6 @@
(t 'wave))
powerline-image-apple-rgb (eq window-system 'ns)
powerline-scale (or (spacemacs/mode-line-separator-scale) 1.5)
powerline-height (spacemacs/compute-mode-line-height)
spaceline-byte-compile nil))
:config
(progn