[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/rainbow-delimiters 19b93892af 180/188: Inherit all rainbow
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/rainbow-delimiters 19b93892af 180/188: Inherit all rainbow-delimiters faces from a base face |
Date: |
Sat, 1 Jan 2022 00:59:03 -0500 (EST) |
branch: elpa/rainbow-delimiters
commit 19b93892afa0494ba749c2ca9c154e04447ad778
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Fanael Linithien <fanael4@gmail.com>
Inherit all rainbow-delimiters faces from a base face
With a common base face it is possible for a user to set a face
attribute to all rainbow-delimiter faces by manipulating just
rainbow-delimiters-base-face.
---
rainbow-delimiters.el | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/rainbow-delimiters.el b/rainbow-delimiters.el
index 5f30e7cc2f..d3eb59f6ac 100644
--- a/rainbow-delimiters.el
+++ b/rainbow-delimiters.el
@@ -104,14 +104,20 @@ The function should not move the point or mark or change
the match data."
:type 'function
:group 'rainbow-delimiters)
+(defface rainbow-delimiters-base-face
+ '((default (:inherit unspecified)))
+ "Face inherited by all other rainbow-delimiter faces."
+ :group 'rainbow-delimiters-faces)
+
(defface rainbow-delimiters-unmatched-face
- '((((background light)) (:foreground "#88090B"))
- (((background dark)) (:foreground "#88090B")))
+ '((default (:inherit rainbow-delimiters-base-face))
+ (((background light)) (:foreground "#88090B"))
+ (((background dark)) (:inherit rainbow-delimiters-base-face :foreground
"#88090B")))
"Face to highlight unmatched closing delimiters in."
:group 'rainbow-delimiters-faces)
(defface rainbow-delimiters-mismatched-face
- '((t :inherit rainbow-delimiters-unmatched-face))
+ '((t :inherit (rainbow-delimiters-unmatched-face
rainbow-delimiters-base-face)))
"Face to highlight mismatched closing delimiters in."
:group 'rainbow-delimiters-faces)
@@ -124,7 +130,8 @@ The function should not move the point or mark or change
the match data."
"#b0b0b3" "#90a890" "#a2b6da" "#9cb6ad"]))
(dotimes (i 9)
(push `(defface ,(intern (format "rainbow-delimiters-depth-%d-face"
(1+ i)))
- '((((class color) (background light)) :foreground ,(aref
light-colors i))
+ '((default (:inherit rainbow-delimiters-base-face))
+ (((class color) (background light)) :foreground ,(aref
light-colors i))
(((class color) (background dark)) :foreground ,(aref
dark-colors i)))
,(format "Nested delimiter face, depth %d." (1+ i))
:group 'rainbow-delimiters-faces)
- [nongnu] elpa/rainbow-delimiters b10da10248 154/188: Release version 2.0., (continued)
- [nongnu] elpa/rainbow-delimiters b10da10248 154/188: Release version 2.0., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters f91b36bad7 157/188: Use the depth from parse-partial-sexp directly, ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters ac62aa0a53 161/188: Remove useless comments., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters edd8f8624d 171/188: Kill rainbow-delimiters-delimiter-blacklist., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters a50f8f1a9c 166/188: Shorten the header line., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 9eb2dff24e 172/188: Release version 2.1., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 28438926aa 164/188: Move installation instructions before the commentary., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 5e6fbb46f9 175/188: Update copyright years, ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters b4ef113712 184/188: Move the test script to root and make sure it's executable, ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters d007f2d797 174/188: Use skip-syntax-forward instead of re-search-forward, ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 19b93892af 180/188: Inherit all rainbow-delimiters faces from a base face,
ELPA Syncer <=
- [nongnu] elpa/rainbow-delimiters e561cff4ab 181/188: Amended Travis build matrix, ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 455bcee19c 182/188: Provide a base face for the error faces too, ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters c1149daac0 173/188: Make it clear that global-rainbow-delimiters-mode is no more, ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 93cd2dc873 179/188: syntax-begin-function is obsolete, so test for its existence, ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 3611b101d3 139/188: Test if already highlighted text is highlighted correctly., ELPA Syncer, 2022/01/01