Disable vi tilde fringe in which-key buffer

This commit is contained in:
syl20bnr 2016-06-13 00:39:08 -04:00
parent d0452a861a
commit e1826c9382

View file

@ -359,9 +359,10 @@
:documentation
"Globally display a ~ on empty lines in the fringe."
:evil-leader "T~")
;; don't enable it on spacemacs home buffer
(with-current-buffer spacemacs-buffer-name
(spacemacs/disable-vi-tilde-fringe))
;; don't enable it on some special buffers
(dolist (x (list spacemacs-buffer-name
which-key--buffer))
(with-current-buffer x (spacemacs/disable-vi-tilde-fringe)))
;; after a major mode is loaded, check if the buffer is read only
;; if so, disable vi-tilde-fringe-mode
(add-hook 'after-change-major-mode-hook