From dbe5acc2c3bcf30354b17d72f52bcfffb35fa35c Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 4 Sep 2024 11:17:13 +0200 Subject: [PATCH] rainbow-delimiters: Use hook section an configure faces Move the hook config from use-package's config section to use-package's hook section. Have more visible rainbow-delimiters base face colors. --- .emacs.d/config/dev.el | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.emacs.d/config/dev.el b/.emacs.d/config/dev.el index 6cae4dd..deba04a 100644 --- a/.emacs.d/config/dev.el +++ b/.emacs.d/config/dev.el @@ -17,8 +17,17 @@ (use-package rainbow-delimiters :ensure t - :config - (add-hook 'prog-mode-hook #'rainbow-delimiters-mode)) + :hook + (prog-mode . rainbow-delimiters-mode) + :custom-face + (rainbow-delimiters-depth-2-face ((t (:inherit rainbow-delimiters-base-face :foreground "cornflower blue")))) + (rainbow-delimiters-depth-3-face ((t (:inherit rainbow-delimiters-base-face :foreground "sandy brown")))) + (rainbow-delimiters-depth-4-face ((t (:inherit rainbow-delimiters-base-face :foreground "yellow green")))) + (rainbow-delimiters-depth-5-face ((t (:inherit rainbow-delimiters-base-face :foreground "powder blue")))) + (rainbow-delimiters-depth-6-face ((t (:inherit rainbow-delimiters-base-face :foreground "orchid")))) + (rainbow-delimiters-depth-7-face ((t (:inherit rainbow-delimiters-base-face :foreground "lemon chiffon")))) + (rainbow-delimiters-depth-8-face ((t (:inherit rainbow-delimiters-base-face :foreground "goldenrod")))) + (rainbow-delimiters-depth-9-face ((t (:inherit rainbow-delimiters-base-face :foreground "dark cyan"))))) ;; Hack to show only files known to git inside dired; needs the ;; `git-find' shell script shim (taken from :open https://r0tty.org/git/dotfiles/emacs/tree/.emacs.d/config/development.el)