Add toggle for vi-tilde-fringe on SPC t ~

This commit is contained in:
syl20bnr 2015-03-31 23:03:34 -04:00
parent 5e993d8e4c
commit 193f7834af
2 changed files with 11 additions and 1 deletions

View file

@ -773,6 +773,7 @@ Some graphical UI indicators can be toggled on and off (toggles start with `t`):
Key Binding | Description
------------------------|------------------------------------------------------------
<kbd>SPC t ~</kbd> | display `~` in the fringe on empty lines
<kbd>SPC t c</kbd> | display the fill column (by default the fill column is set to 80)
<kbd>SPC t F</kbd> | toggle frame fullscreen
<kbd>SPC t f</kbd> | toggle display of the fringe

View file

@ -2554,7 +2554,16 @@ displayed in the mode-line.")
(use-package vi-tilde-fringe
:if window-system
:init
(global-vi-tilde-fringe-mode)
(progn
(global-vi-tilde-fringe-mode)
(spacemacs|add-toggle vi-tilde-fringe
:status vi-tilde-fringe-mode
:on (global-vi-tilde-fringe-mode)
:off (global-vi-tilde-fringe-mode -1)
:documentation
(concat "Globally display a ~ on "
"empty lines in the fringe.")
:evil-leader "t~"))
:config
(spacemacs|hide-lighter vi-tilde-fringe-mode)))