Emacs: Fix custom-faces definition for rainvow-delimiters.

This commit is contained in:
tastytea 2020-03-10 10:29:02 +01:00
parent 5421bbd971
commit 9665dd40b4

View File

@ -1,6 +1,6 @@
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-09T15:35:25+0100>
;; Time-stamp: <2020-03-10T10:28:52+0100>
;;; Commentary:
@ -212,18 +212,18 @@ year if mode is derived from prog-mode."
;; Highlights parentheses, brackets or braces according to their depth.
(use-package rainbow-delimiters
:custom (rainbow-delimiters-max-face-count 2)
:custom-face ((rainbow-delimiters-depth-1-face
((t (:inherit rainbow-delimiters-base-face
:foreground "LightPink"))))
(rainbow-delimiters-depth-2-face
((t (:inherit rainbow-delimiters-base-face
:foreground "LightGreen"))))
(rainbow-delimiters-depth-3-face
((t (:inherit rainbow-delimiters-base-face
:foreground "MediumPurple1"))))
(rainbow-delimiters-depth-4-face
((t (:inherit rainbow-delimiters-base-face
:foreground "LightSkyBlue")))))
:custom-face (rainbow-delimiters-depth-1-face
((t (:inherit rainbow-delimiters-base-face
:foreground "LightPink"))))
(rainbow-delimiters-depth-2-face
((t (:inherit rainbow-delimiters-base-face
:foreground "LightGreen"))))
(rainbow-delimiters-depth-3-face
((t (:inherit rainbow-delimiters-base-face
:foreground "MediumPurple1"))))
(rainbow-delimiters-depth-4-face
((t (:inherit rainbow-delimiters-base-face
:foreground "LightSkyBlue"))))
:hook (prog-mode . rainbow-delimiters-mode))
(use-package rainbow-mode