Define evil-want-* options as defvars

To make it easier for users to customize.
This commit is contained in:
Henrik Lissner 2018-06-27 03:09:06 +02:00
parent 123df290a6
commit 8b9d4a94bb
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -3,17 +3,15 @@
;; I'm a vimmer at heart. Its modal philosophy suits me better, and this module
;; strives to make Emacs a much better vim than vim was.
(defvar +evil-collection-disabled-list ()
"A list of `evil-collection' modules to ignore. See the definition of this
variable for an explanation of the defaults (in comments). See
`evil-collection-mode-list' for a list of available options.")
;; Set these defaults before `evil'; use `defvar' so they can be changed prior
;; to loading.
(defvar evil-want-C-u-scroll t)
(defvar evil-want-C-w-scroll t)
(defvar evil-want-Y-yank-to-eol t)
(def-package! evil
:init
(setq evil-want-C-u-scroll t
evil-want-C-w-delete t
evil-want-Y-yank-to-eol t
evil-want-visual-char-semi-exclusive t
(setq evil-want-visual-char-semi-exclusive t
evil-magic t
evil-echo-state t
evil-indent-convert-tabs t