dump: remove spaceline-compile hook and force separator to be utf-8

For now we have an issue with invalid XMP image format when dumping.
So we force utf-8 separator.

spaceline-compile is really long and not really necessary for regular users.
Advanced users must explicitly call spaceline-compile in their dotfile and be
ready to pay a 0.5s penalty when loading emacs.
This commit is contained in:
syl20bnr 2018-03-31 00:45:53 -04:00
parent 2580e43c66
commit 378392e7cd
1 changed files with 8 additions and 6 deletions

View File

@ -53,7 +53,6 @@
:if (memq (spacemacs/get-mode-line-theme-name) '(spacemacs all-the-icons custom))
:init
(progn
(add-hook 'spacemacs-post-user-config-hook 'spaceline-compile)
(add-hook 'spacemacs-post-theme-change-hook
'spacemacs/customize-powerline-faces)
(add-hook 'spacemacs-post-theme-change-hook 'powerline-reset)
@ -67,12 +66,15 @@
:documentation "Make the mode-line responsive."
:evil-leader "tmr")
(setq powerline-default-separator
(or (and (memq (spacemacs/get-mode-line-theme-name)
'(spacemacs custom))
(spacemacs/mode-line-separator))
'wave)
(cond
((spacemacs-is-dumping-p) 'utf-8)
((memq (spacemacs/get-mode-line-theme-name)
'(spacemacs custom))
(spacemacs/mode-line-separator))
(t 'wave))
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))
(spacemacs|do-after-display-system-init
;; seems to be needed to avoid weird graphical artefacts with the
;; first graphical client