[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/modus-vivendi-theme 6d288f9 038/110: Refine colours for
From: |
Stefan Monnier |
Subject: |
[elpa] externals/modus-vivendi-theme 6d288f9 038/110: Refine colours for C-q chars and regexp groupings |
Date: |
Wed, 29 Apr 2020 21:40:02 -0400 (EDT) |
branch: externals/modus-vivendi-theme
commit 6d288f953821a357169bfc5a35ca1aa609398ec0
Author: Protesilaos Stavrou <address@hidden>
Commit: Protesilaos Stavrou <address@hidden>
Refine colours for C-q chars and regexp groupings
This defines a couple of "dedicated" colour values. With those we are
free to design all relevant faces without making any compromises.
Whereas before we were using colours whose purpose was to highlight code
syntax and the like.
All special characters, be they `quoted-insert' or regexp delimiters,
should be distinguishable from their typical context (strings, code
syntax, docstrings, prose).
At the same time, the intent behind the choice of these colours is to
avoid calling too much attention to those characters. For instance, a
quoted character such as "^L" (C-q C-l) should feel more like a special
comment than a keyword of utmost importance.
---
modus-operandi-theme.el | 26 ++++++++++++++++----------
modus-vivendi-theme.el | 26 ++++++++++++++++----------
2 files changed, 32 insertions(+), 20 deletions(-)
diff --git a/modus-operandi-theme.el b/modus-operandi-theme.el
index 0757a9d..5d011af 100644
--- a/modus-operandi-theme.el
+++ b/modus-operandi-theme.el
@@ -516,6 +516,9 @@ AMOUNT is a customisation option."
;; though only for styling special elements, such as underlining
;; the current tab
;;
+ ;; `fg-escape-char-construct' and `fg-escape-char-backslash' can
+ ;; be combined `bg-main', `bg-dim', `bg-alt'
+ ;;
;; `fg-mark', `fg-mark-del', `fg-mark-other' can be combined with
;; `bg-main', `bg-dim', `bg-alt', `bg-hl-line'
;;
@@ -530,6 +533,9 @@ AMOUNT is a customisation option."
(bg-tab-inactive "#dadada")
(fg-tab-active "#000077")
+ (fg-escape-char-construct "#8b1030")
+ (fg-escape-char-backslash "#644f00")
+
(fg-window-divider-inner "#888888")
(fg-window-divider-outer "#585858")
(fg-header "#2a2a2a") (bg-header "#e5e5e5")
@@ -642,13 +648,13 @@ AMOUNT is a customisation option."
:foreground ,fg-main))))
;;;; basic and/or ungrouped styles
`(error ((,class (:foreground ,red :weight bold))))
- `(escape-glyph ((,class (:inherit modus-theme-refine-blue :weight bold))))
+ `(escape-glyph ((,class (:foreground ,fg-escape-char-construct))))
`(header-line ((,class (:background ,bg-header :foreground ,fg-header))))
- `(homoglyph ((,class (:foreground ,yellow-alt-other))))
+ `(homoglyph ((,class (:foreground ,fg-escape-char-construct))))
`(ibuffer-locked-buffer ((,class (:foreground ,yellow-alt-other))))
`(italic ((,class (:foreground ,fg-special-cold :slant italic))))
- `(nobreak-hyphen ((,class (:inherit modus-theme-special-cold))))
- `(nobreak-space ((,class (:inherit modus-theme-special-cold :underline t))))
+ `(nobreak-hyphen ((,class (:foreground ,fg-escape-char-construct))))
+ `(nobreak-space ((,class (:foreground ,fg-escape-char-construct :underline
t))))
`(minibuffer-prompt ((,class (:foreground ,cyan-alt))))
`(mm-command-output ((,class (:foreground ,red-alt-other))))
`(mm-uu-extract ((,class (:background ,bg-dim :foreground
,fg-special-mild))))
@@ -1430,8 +1436,8 @@ AMOUNT is a customisation option."
`(font-lock-keyword-face ((,class (:foreground ,magenta-alt-other :weight
,modus-theme-bold))))
`(font-lock-negation-char-face ((,class (:foreground ,yellow :weight
,modus-theme-bold))))
`(font-lock-preprocessor-face ((,class (:foreground ,magenta))))
- `(font-lock-regexp-grouping-backslash ((,class (:foreground ,green :weight
bold))))
- `(font-lock-regexp-grouping-construct ((,class (:foreground ,magenta
:weight bold))))
+ `(font-lock-regexp-grouping-backslash ((,class (:foreground
,fg-escape-char-backslash :weight bold))))
+ `(font-lock-regexp-grouping-construct ((,class (:foreground
,fg-escape-char-construct :weight bold))))
`(font-lock-string-face ((,class (:foreground ,blue-alt))))
`(font-lock-type-face ((,class (:foreground ,magenta-alt))))
`(font-lock-variable-name-face ((,class (:foreground ,cyan))))
@@ -1724,8 +1730,8 @@ AMOUNT is a customisation option."
`(highlight-defined-special-form-name-face ((,class (:foreground
,magenta-alt-other))))
`(highlight-defined-variable-name-face ((,class (:foreground ,cyan))))
;;;; highlight-escape-sequences (`hes-mode')
- `(hes-escape-backslash-face ((,class (:foreground ,green :weight bold))))
- `(hes-escape-sequence-face ((,class (:foreground ,magenta :weight bold))))
+ `(hes-escape-backslash-face ((,class (:foreground ,fg-escape-char-construct
:weight bold))))
+ `(hes-escape-sequence-face ((,class (:foreground ,fg-escape-char-backslash
:weight bold))))
;;;; highlight-numbers
`(highlight-numbers-number ((,class (:foreground ,blue-alt-other))))
;;;; highlight-thing
@@ -2498,8 +2504,8 @@ AMOUNT is a customisation option."
`(reb-match-1 ((,class (:inherit modus-theme-intense-magenta))))
`(reb-match-2 ((,class (:inherit modus-theme-intense-green))))
`(reb-match-3 ((,class (:inherit modus-theme-intense-red))))
- `(reb-regexp-grouping-backslash ((,class (:foreground ,green :weight
bold))))
- `(reb-regexp-grouping-construct ((,class (:foreground ,magenta :weight
bold))))
+ `(reb-regexp-grouping-backslash ((,class (:foreground
,fg-escape-char-backslash :weight bold))))
+ `(reb-regexp-grouping-construct ((,class (:foreground
,fg-escape-char-construct :weight bold))))
;;;; rg (rg.el)
`(rg-column-number-face ((,class (:foreground ,magenta-alt-other))))
`(rg-context-face ((,class (:foreground ,fg-alt))))
diff --git a/modus-vivendi-theme.el b/modus-vivendi-theme.el
index 9239bc2..f525ec7 100644
--- a/modus-vivendi-theme.el
+++ b/modus-vivendi-theme.el
@@ -516,6 +516,9 @@ AMOUNT is a customisation option."
;; though only for styling special elements, such as underlining
;; the current tab
;;
+ ;; `fg-escape-char-construct' and `fg-escape-char-backslash' can
+ ;; be combined `bg-main', `bg-dim', `bg-alt'
+ ;;
;; `fg-mark', `fg-mark-del', `fg-mark-other' can be combined with
;; `bg-main', `bg-dim', `bg-alt', `bg-hl-line'
;;
@@ -530,6 +533,9 @@ AMOUNT is a customisation option."
(bg-tab-inactive "#2f2f2f")
(fg-tab-active "#99efff")
+ (fg-escape-char-construct "#e7a59a")
+ (fg-escape-char-backslash "#abab00")
+
(fg-window-divider-inner "#646464")
(fg-window-divider-outer "#969696")
(fg-header "#dddddd") (bg-header "#2a2a2a")
@@ -642,13 +648,13 @@ AMOUNT is a customisation option."
:foreground ,fg-main))))
;;;; basic and/or ungrouped styles
`(error ((,class (:foreground ,red :weight bold))))
- `(escape-glyph ((,class (:inherit modus-theme-refine-blue :weight bold))))
+ `(escape-glyph ((,class (:foreground ,fg-escape-char-construct))))
`(header-line ((,class (:background ,bg-header :foreground ,fg-header))))
- `(homoglyph ((,class (:foreground ,yellow-alt-other))))
+ `(homoglyph ((,class (:foreground ,fg-escape-char-construct))))
`(ibuffer-locked-buffer ((,class (:foreground ,yellow-alt-other))))
`(italic ((,class (:foreground ,fg-special-cold :slant italic))))
- `(nobreak-hyphen ((,class (:inherit modus-theme-special-cold))))
- `(nobreak-space ((,class (:inherit modus-theme-special-cold :underline t))))
+ `(nobreak-hyphen ((,class (:foreground ,fg-escape-char-construct))))
+ `(nobreak-space ((,class (:foreground ,fg-escape-char-construct :underline
t))))
`(minibuffer-prompt ((,class (:foreground ,cyan-alt))))
`(mm-command-output ((,class (:foreground ,red-alt-other))))
`(mm-uu-extract ((,class (:background ,bg-dim :foreground
,fg-special-mild))))
@@ -1430,8 +1436,8 @@ AMOUNT is a customisation option."
`(font-lock-keyword-face ((,class (:foreground ,magenta-alt-other :weight
,modus-theme-bold))))
`(font-lock-negation-char-face ((,class (:foreground ,yellow :weight
,modus-theme-bold))))
`(font-lock-preprocessor-face ((,class (:foreground ,magenta))))
- `(font-lock-regexp-grouping-backslash ((,class (:foreground ,green :weight
bold))))
- `(font-lock-regexp-grouping-construct ((,class (:foreground ,magenta
:weight bold))))
+ `(font-lock-regexp-grouping-backslash ((,class (:foreground
,fg-escape-char-backslash :weight bold))))
+ `(font-lock-regexp-grouping-construct ((,class (:foreground
,fg-escape-char-construct :weight bold))))
`(font-lock-string-face ((,class (:foreground ,blue-alt))))
`(font-lock-type-face ((,class (:foreground ,magenta-alt))))
`(font-lock-variable-name-face ((,class (:foreground ,cyan))))
@@ -1724,8 +1730,8 @@ AMOUNT is a customisation option."
`(highlight-defined-special-form-name-face ((,class (:foreground
,magenta-alt-other))))
`(highlight-defined-variable-name-face ((,class (:foreground ,cyan))))
;;;; highlight-escape-sequences (`hes-mode')
- `(hes-escape-backslash-face ((,class (:foreground ,green :weight bold))))
- `(hes-escape-sequence-face ((,class (:foreground ,magenta :weight bold))))
+ `(hes-escape-backslash-face ((,class (:foreground ,fg-escape-char-construct
:weight bold))))
+ `(hes-escape-sequence-face ((,class (:foreground ,fg-escape-char-backslash
:weight bold))))
;;;; highlight-numbers
`(highlight-numbers-number ((,class (:foreground ,blue-alt-other))))
;;;; highlight-thing
@@ -2498,8 +2504,8 @@ AMOUNT is a customisation option."
`(reb-match-1 ((,class (:inherit modus-theme-intense-magenta))))
`(reb-match-2 ((,class (:inherit modus-theme-intense-green))))
`(reb-match-3 ((,class (:inherit modus-theme-intense-red))))
- `(reb-regexp-grouping-backslash ((,class (:foreground ,green :weight
bold))))
- `(reb-regexp-grouping-construct ((,class (:foreground ,magenta :weight
bold))))
+ `(reb-regexp-grouping-backslash ((,class (:foreground
,fg-escape-char-backslash :weight bold))))
+ `(reb-regexp-grouping-construct ((,class (:foreground
,fg-escape-char-construct :weight bold))))
;;;; rg (rg.el)
`(rg-column-number-face ((,class (:foreground ,magenta-alt-other))))
`(rg-context-face ((,class (:foreground ,fg-alt))))
- [elpa] externals/modus-vivendi-theme 7f3388b 013/110: Add missing documentation for covered `csv-mode', (continued)
- [elpa] externals/modus-vivendi-theme 7f3388b 013/110: Add missing documentation for covered `csv-mode', Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme 86eb802 012/110: Add support for CTRLF, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme d3a39cd 007/110: Add support for PARROT, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme e1e9fad 018/110: Document IBUFFER support. Add minor tweaks., Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme aacd88a 027/110: Add support for TRASHED, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme 075c29f 030/110: Improve section about demo content in the README, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme 91aeae2 017/110: Minor doc update on new subtle diffs option, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme 003941a 016/110: Internal: implement macro for scaling headings, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme 1086949 023/110: Add single missing parenthesis to the README, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme afbe3ce 028/110: Add support for VISIBLE-MARK, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme 6d288f9 038/110: Refine colours for C-q chars and regexp groupings,
Stefan Monnier <=
- [elpa] externals/modus-vivendi-theme c419e9b 034/110: Add support for new ICOMPLETE-VERTICAL package, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme e6c7b7f 033/110: Document already-supported ICOMPLETE and FLX, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme d8d266d 043/110: Add missing newline char in end of file, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme 72de79b 044/110: Use bold weight conditionally in more indicators, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme ded2d1f 035/110: Provide concise docs of customisation options, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme ca9a69d 040/110: Add support for AG, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme 530787e 048/110: Refine FLYSPELL: use new dedicated lang colours, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme 409648d 049/110: Refine FLYMAKE: new linter colours, better fringes, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme f635f9b 050/110: Refine ARTBOLLOCKS-MODE: use new lang colours, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme a0e9380 055/110: Add tentative support for Emacs27 TAB-{BAR, LINE}, Stefan Monnier, 2020/04/29