From a018bc75f652f56731113cfd9db376c47e95bb5e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 29 May 2018 02:08:31 +0200 Subject: [PATCH] feature/evil: add +evil-collection-disabled-list Use this list to disable certain features of evil-collection. It should be set before evil-collection is loaded (which shouldn't be until after doom has fully loaded). --- modules/feature/evil/config.el | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/feature/evil/config.el b/modules/feature/evil/config.el index 181f8064b..28d22d96d 100644 --- a/modules/feature/evil/config.el +++ b/modules/feature/evil/config.el @@ -3,6 +3,14 @@ ;; 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 + '(kotlin-mode ; doesn't do anything useful + simple) ; ditto + "A list of `evil-collection' modules to disable. 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.") + + (def-package! evil-collection :when (featurep! +everywhere) :defer 1 @@ -12,8 +20,8 @@ (setq evil-want-integration nil evil-collection-company-use-tng nil) :config - (delq 'kotlin-mode evil-collection-mode-list) ; doesn't do anything useful - (delq 'simple evil-collection-mode-list) ; breaks too much + (dolist (sym +evil-collection-disabled-list) + (setq evil-collection-mode-list (delq sym evil-collection-mode-list))) (evil-collection-init))