Tweak vim-empty-lines layer

This commit is contained in:
syl20bnr 2015-01-12 23:23:23 -05:00
parent 035dcee733
commit a8b7bfc440
2 changed files with 14 additions and 9 deletions

View File

@ -2,11 +2,16 @@
## Description
This layer is a drop-in replacement for the `vi-tilde-fringe` mode, for those who desire behaviour closer to `vim`'s.
This layer is a drop-in replacement for the `vi-tilde-fringe` mode,
for those who desire behaviour closer to `vim`'s.
It has better compatibility with retina displays, as it uses a text overlay using your font, rather than a pixel-art tilde. The empty line indicators are overlaid in within the buffer as in `vim`, and not in the fringe. The indicator behaviour with trailing empty lines matches `vim`'s behaviour.
It has better compatibility with retina displays, as it uses a text
overlay using your font, rather than a pixel-art tilde. The empty line
indicators are overlaid in within the buffer as in `vim`, and not in
the fringe. The indicator behaviour with trailing empty lines matches
`vim`'s behaviour.
For details, see the [package repo](https://github.com/jmickelin/vim-empty-lines-mode)
For details, see the [vim-empty-lines-mode][] repository.
## Install
@ -17,3 +22,4 @@ To use this contribution add it to your `~/.spacemacs`.
"List of contribution to load."
)
```
[vim-empty-lines-mode]: https://github.com/jmickelin/vim-empty-lines-mode

View File

@ -1,15 +1,14 @@
(defvar vim-empty-lines-packages
'(vim-empty-lines-mode))
(defvar vim-empty-lines-mode-excluded-packages
'(vi-tilde-fringe)
"This contrib layer is meant to be an alternative/direct replacement to `vi-tilde-fringe'.")
(defvar vim-empty-lines-excluded-packages
'(vi-tilde-fringe))
(defun vim-empty-lines/init-vim-empty-lines-mode ()
(use-package vim-empty-lines-mode
:defer t
:init
(progn
(add-hook 'prog-mode-hook 'vim-empty-lines-mode)
(add-hook 'text-mode-hook 'vim-empty-lines-mode))
))
(add-to-hooks 'vim-empty-lines-mode '(prog-mode-hook
erlang-mode-hook
text-mode-hook)))))