Exclude which-key from layer sync powerline restore

When syncing the configuration layers `SPC f e R`,
don't restore the powerline to the which-key buffer.
This commit is contained in:
duianto 2019-04-15 08:54:35 +02:00
parent c68fde7beb
commit 2342f76cf1
2 changed files with 5 additions and 2 deletions

View File

@ -917,6 +917,7 @@ Other:
- Added ranger-mode to golden-ratio-exclude-modes (thanks to Langston Barrett)
- Fixed evil surround bindings (thanks to Hoyon Mak)
- Improved Window Manipulation Transient state (thanks to yuhan0)
- Exclude which-key from layer sync powerline restore (thanks to Doug Wilson)
*** Layer changes and fixes
**** Ansible
- Improvements:

View File

@ -50,9 +50,11 @@ Return nil if no scale is defined."
(powerline-reset)))
(defun spacemacs//restore-buffers-powerline ()
"Restore the powerline in all buffers."
"Restore the powerline in the buffers.
Excluding which-key."
(dolist (buffer (buffer-list))
(spacemacs//restore-powerline buffer)))
(unless (string-match-p "\\*which-key\\*" (buffer-name buffer))
(spacemacs//restore-powerline buffer))))
(defun spacemacs//prepare-diminish ()
(when spaceline-minor-modes-p