From b0c07df5541ae701f2e0a68213fd22032f7a5707 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Fri, 24 Feb 2023 12:00:06 -0800 Subject: [PATCH] Change to color-identifiers-mode for simpler coloring --- elisp/modes/default-modes.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/elisp/modes/default-modes.el b/elisp/modes/default-modes.el index 9cd7035..b20b893 100644 --- a/elisp/modes/default-modes.el +++ b/elisp/modes/default-modes.el @@ -2,11 +2,11 @@ ;;; Code: ;; Easier to identify identifiers -;; The init add-hook seems to be the only way this works. -;; :hook does not work with rainbow identifiers for some reason. -(use-package rainbow-identifiers +(use-package color-identifiers-mode :ensure t - :init (add-hook 'prog-mode-hook 'rainbow-identifiers-mode)) + :init (add-hook 'after-init-hook 'global-color-identifiers-mode) + :config + (setq color-identifiers:recoloring-delay 1)) ;; Flycheck is enabled globally. (use-package flycheck