From a68b49a98e7bea0bd76caf6da4cf0a5d741c4bb2 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 10 Nov 2020 17:15:49 -0500 Subject: [PATCH] Append evil cursor color init hooks Makes it easier for users to add their own customizations to the cursor before this fires. --- modules/editor/evil/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/editor/evil/config.el b/modules/editor/evil/config.el index db489904e..8e2eeb0bb 100644 --- a/modules/editor/evil/config.el +++ b/modules/editor/evil/config.el @@ -90,7 +90,7 @@ directives. By default, this only recognizes C directives.") (defvar +evil--default-cursor-color "#ffffff") (defvar +evil--emacs-cursor-color "#ff9999") - (add-hook! 'doom-load-theme-hook + (add-hook! 'doom-load-theme-hook :append (defun +evil-update-cursor-color-h () (setq +evil--default-cursor-color (face-background 'cursor) +evil--emacs-cursor-color (face-foreground 'warning))))