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 - Updated =quelpa= to fix installing of some recipes on macOS
(thanks to Dieter Komendera) (thanks to Dieter Komendera)
- Added startup support for doom-sourcerer theme (thanks to Parker Johnson) - 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: - Other:
- New function =configuration-layer/message= to display message in - New function =configuration-layer/message= to display message in
=*Messages*= buffer (thanks to Sylvain Benner) =*Messages*= buffer (thanks to Sylvain Benner)

View file

@ -64,6 +64,10 @@
(spacemacs|add-transient-hook window-configuration-change-hook (spacemacs|add-transient-hook window-configuration-change-hook
(lambda () (lambda ()
(setq spaceline-byte-compile t) (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)) (spaceline-compile))
lazy-load-spaceline))) lazy-load-spaceline)))
(progn (progn
@ -105,7 +109,6 @@
(t 'wave)) (t 'wave))
powerline-image-apple-rgb (eq window-system 'ns) powerline-image-apple-rgb (eq window-system 'ns)
powerline-scale (or (spacemacs/mode-line-separator-scale) 1.5) powerline-scale (or (spacemacs/mode-line-separator-scale) 1.5)
powerline-height (spacemacs/compute-mode-line-height)
spaceline-byte-compile nil)) spaceline-byte-compile nil))
:config :config
(progn (progn