From 8b9d4a94bbe9db38eb2783c73ef9c7edca0cf91a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 27 Jun 2018 03:09:06 +0200 Subject: [PATCH] Define evil-want-* options as defvars To make it easier for users to customize. --- modules/feature/evil/config.el | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/modules/feature/evil/config.el b/modules/feature/evil/config.el index b53c047b8..5540bad77 100644 --- a/modules/feature/evil/config.el +++ b/modules/feature/evil/config.el @@ -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