Fix possible infinite appending to golden-ratio-exclude-buffer-names

Each time the config is reloaded with SPC f e R we were appending new
strings to the variable.
This commit is contained in:
syl20bnr 2016-08-31 22:41:44 -04:00
parent 4c72b369c3
commit 3290c8a94f

View file

@ -113,9 +113,8 @@
(defun idris/pre-init-golden-ratio ()
(spacemacs|use-package-add-hook golden-ratio
:post-config
(setq golden-ratio-exclude-buffer-names
(append golden-ratio-exclude-buffer-names
'("*idris-notes*" "*idris-holes*" "*idris-info*")))))
(dolist (x '("*idris-notes*" "*idris-holes*" "*idris-info*"))
(add-to-list 'golden-ratio-exclude-buffer-names x))))
(defun idris/pre-init-popwin ()
(spacemacs|use-package-add-hook popwin