From 378392e7cd513c8ab5fe800f224ed717a52eab39 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Sat, 31 Mar 2018 00:45:53 -0400 Subject: [PATCH] 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. --- layers/+spacemacs/spacemacs-modeline/packages.el | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/layers/+spacemacs/spacemacs-modeline/packages.el b/layers/+spacemacs/spacemacs-modeline/packages.el index 76fd515fa..d75514a46 100644 --- a/layers/+spacemacs/spacemacs-modeline/packages.el +++ b/layers/+spacemacs/spacemacs-modeline/packages.el @@ -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