[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/modus-operandi-theme 3521fae 42/99: Simplify conditiona
From: |
Stefan Monnier |
Subject: |
[elpa] externals/modus-operandi-theme 3521fae 42/99: Simplify conditional use of Org block background |
Date: |
Fri, 31 Jul 2020 09:25:22 -0400 (EDT) |
branch: externals/modus-operandi-theme
commit 3521fae7d819b19351d0e04f2d929d1577823c6b
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Simplify conditional use of Org block background
---
modus-operandi-theme.el | 13 +++++++------
modus-vivendi-theme.el | 13 +++++++------
2 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/modus-operandi-theme.el b/modus-operandi-theme.el
index b4fa750..57f605c 100644
--- a/modus-operandi-theme.el
+++ b/modus-operandi-theme.el
@@ -544,15 +544,16 @@ and the border. FG is used when no block style is in
effect."
(list :background bgbox :foreground fgbox :box (list :color fgbox))
(list :foreground fg)))
-(defun modus-operandi-theme-org-block (bgblk bg)
+(defun modus-operandi-theme-org-block (bgblk)
"Conditionally set the background of Org blocks.
-BGBLK applies to a distinct neutral background. BG is used to
-keep blocks the same background as the rest of the buffer."
+BGBLK applies to a distinct neutral background. Else blocks have
+no background of their own (the default), so they look the same
+as the rest of the buffer."
(if modus-operandi-theme-distinct-org-blocks
(append
(and (>= emacs-major-version 27) '(:extend t))
(list :background bgblk))
- (list :background bg)))
+ (list :background nil)))
(defun modus-operandi-theme-org-block-delim (bgext fgext bg fg)
"Conditionally set the styles of Org block delimiters.
@@ -2813,7 +2814,7 @@ Also bind `class' to ((class color) (min-colors 89))."
:foreground ,fg-special-mild
,@(modus-operandi-theme-scale
modus-operandi-theme-scale-3))))
`(org-archived ((,class :background ,bg-alt :foreground ,fg-alt)))
- `(org-block ((,class ,@(modus-operandi-theme-org-block bg-dim bg-main)
+ `(org-block ((,class ,@(modus-operandi-theme-org-block bg-dim)
:inherit fixed-pitch :foreground ,fg-main)))
`(org-block-begin-line ((,class ,@(modus-operandi-theme-org-block-delim
bg-active fg-special-cold
@@ -2894,7 +2895,7 @@ Also bind `class' to ((class color) (min-colors 89))."
`(org-mode-line-clock-overrun ((,class :inherit modus-theme-active-red)))
`(org-priority ((,class ,@(modus-operandi-theme-org-todo-block
magenta-nuanced-bg magenta-nuanced magenta)
,@(modus-operandi-theme-heading-foreground magenta
magenta-alt-other))))
- `(org-quote ((,class ,@(modus-operandi-theme-org-block bg-dim bg-main)
+ `(org-quote ((,class ,@(modus-operandi-theme-org-block bg-dim)
:foreground ,fg-special-cold :slant
,modus-theme-slant)))
`(org-scheduled ((,class :foreground ,green-alt-other)))
`(org-scheduled-previously ((,class :foreground ,yellow-alt-other)))
diff --git a/modus-vivendi-theme.el b/modus-vivendi-theme.el
index 3f9b316..96c9dd5 100644
--- a/modus-vivendi-theme.el
+++ b/modus-vivendi-theme.el
@@ -544,15 +544,16 @@ and the border. FG is used when no block style is in
effect."
(list :background bgbox :foreground fgbox :box (list :color fgbox))
(list :foreground fg)))
-(defun modus-vivendi-theme-org-block (bgblk bg)
+(defun modus-vivendi-theme-org-block (bgblk)
"Conditionally set the background of Org blocks.
-BGBLK applies to a distinct neutral background. BG is used to
-keep blocks the same background as the rest of the buffer."
+BGBLK applies to a distinct neutral background. Else blocks have
+no background of their own (the default), so they look the same
+as the rest of the buffer."
(if modus-vivendi-theme-distinct-org-blocks
(append
(and (>= emacs-major-version 27) '(:extend t))
(list :background bgblk))
- (list :background bg)))
+ (list :background nil)))
(defun modus-vivendi-theme-org-block-delim (bgext fgext bg fg)
"Conditionally set the styles of Org block delimiters.
@@ -2813,7 +2814,7 @@ Also bind `class' to ((class color) (min-colors 89))."
:foreground ,fg-special-mild
,@(modus-vivendi-theme-scale
modus-vivendi-theme-scale-3))))
`(org-archived ((,class :background ,bg-alt :foreground ,fg-alt)))
- `(org-block ((,class ,@(modus-vivendi-theme-org-block bg-dim bg-main)
+ `(org-block ((,class ,@(modus-vivendi-theme-org-block bg-dim)
:inherit fixed-pitch :foreground ,fg-main)))
`(org-block-begin-line ((,class ,@(modus-vivendi-theme-org-block-delim
bg-active fg-special-cold
@@ -2894,7 +2895,7 @@ Also bind `class' to ((class color) (min-colors 89))."
`(org-mode-line-clock-overrun ((,class :inherit modus-theme-active-red)))
`(org-priority ((,class ,@(modus-vivendi-theme-org-todo-block
magenta-nuanced-bg magenta-nuanced magenta)
,@(modus-vivendi-theme-heading-foreground magenta
magenta-alt-other))))
- `(org-quote ((,class ,@(modus-vivendi-theme-org-block bg-dim bg-main)
+ `(org-quote ((,class ,@(modus-vivendi-theme-org-block bg-dim)
:foreground ,fg-special-cold :slant
,modus-theme-slant)))
`(org-scheduled ((,class :foreground ,green-alt-other)))
`(org-scheduled-previously ((,class :foreground ,yellow-alt-other)))
- [elpa] externals/modus-operandi-theme ae783cd 30/99: Add aliases for 'org-src-block-faces' languages, (continued)
- [elpa] externals/modus-operandi-theme ae783cd 30/99: Add aliases for 'org-src-block-faces' languages, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme bbcc399 31/99: Add support for clojure in 'org-src-block-faces', Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme e039129 38/99: Refine Org agenda modeline filter faces, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 27e94b2 16/99: Use optional bold weight in font-lock-warning-face, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme c543a76 22/99: Consistent org-checkbox-statistics-todo, org-todo, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme adeee9f 25/99: Major review of "nuanced" colours (internal), Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 2766a1d 27/99: New custom option: "ORG SRC RAINBOW BLOCKS", Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 7c27fb4 33/99: Review and expand 'org-src-block-faces', Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 79ab685 39/99: Refine two Org agenda faces, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme c6fcf51 41/99: Review Org scheduled faces, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 3521fae 42/99: Simplify conditional use of Org block background,
Stefan Monnier <=
- [elpa] externals/modus-operandi-theme f382ac1 44/99: Tweak 'org-quote' face, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme a6cd22b 50/99: Refine org-scheduled face (amend commit c6fcf5122), Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 32f3d6f 52/99: Add support for ESHELL-GIT-PROMPT, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 5435753 14/99: Refine 'org-todo' for "rainbow headings" option, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme b584076 15/99: Review colour for 'font-lock-preprocessor-face', Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 5c38177 28/99: Remove obsolete note in README, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 9a52600 29/99: Add support for two new HELM faces, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 0c90a92 34/99: Tweak various preprocessor faces for consistency, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 98073da 36/99: Refine FOUNTAIN faces, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 8a0b566 43/99: Refine conditional beg/end styles for Org blocks, Stefan Monnier, 2020/07/31