[Fix #1060] Only enable vi tildes where appropriate
- Don't enable it so Spacemacs home buffer is prettier. - Don't enable it in read-buffers like help-mode buffers or Info buffers.
This commit is contained in:
parent
0645f808e1
commit
11cd638ccd
|
@ -1918,8 +1918,7 @@ Put (global-hungry-delete-mode) in dotspacemacs/config to enable by default."
|
||||||
|
|
||||||
(defun spacemacs//init-neotree ()
|
(defun spacemacs//init-neotree ()
|
||||||
"Initialize the neotree mode."
|
"Initialize the neotree mode."
|
||||||
(if (fboundp 'global-vi-tilde-fringe-mode)
|
)
|
||||||
(vi-tilde-fringe-mode -1)))
|
|
||||||
|
|
||||||
(defun spacemacs/neotree-expand-or-open ()
|
(defun spacemacs/neotree-expand-or-open ()
|
||||||
"Collapse a neotree node."
|
"Collapse a neotree node."
|
||||||
|
@ -2589,7 +2588,15 @@ displayed in the mode-line.")
|
||||||
:documentation
|
:documentation
|
||||||
(concat "Globally display a ~ on "
|
(concat "Globally display a ~ on "
|
||||||
"empty lines in the fringe.")
|
"empty lines in the fringe.")
|
||||||
:evil-leader "t~"))
|
:evil-leader "t~")
|
||||||
|
;; don't enable it on spacemacs home buffer
|
||||||
|
(with-current-buffer "*spacemacs*"
|
||||||
|
(vi-tilde-fringe-mode -1))
|
||||||
|
;; 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 (lambda ()
|
||||||
|
(when buffer-read-only
|
||||||
|
(vi-tilde-fringe-mode -1)))))
|
||||||
:config
|
:config
|
||||||
(spacemacs|hide-lighter vi-tilde-fringe-mode)))
|
(spacemacs|hide-lighter vi-tilde-fringe-mode)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue