[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/modus-operandi-theme 72d4723 57/99: Remove ':extend t'
From: |
Stefan Monnier |
Subject: |
[elpa] externals/modus-operandi-theme 72d4723 57/99: Remove ':extend t' from all Org block options |
Date: |
Fri, 31 Jul 2020 09:25:25 -0400 (EDT) |
branch: externals/modus-operandi-theme
commit 72d472387960ef5f113f32fb814b9c7107f78b11
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Remove ':extend t' from all Org block options
This is done in the interest of simplicity, as the previous design was
prone to errors and was getting too complicated.
Send feedback: https://gitlab.com/protesilaos/modus-themes/-/issues/57
---
README.org | 30 ++++++++++--------------------
modus-operandi-theme.el | 14 ++++----------
modus-vivendi-theme.el | 14 ++++----------
3 files changed, 18 insertions(+), 40 deletions(-)
diff --git a/README.org b/README.org
index ff2187d..984099b 100644
--- a/README.org
+++ b/README.org
@@ -201,16 +201,12 @@ fully fledged =use-package= declaration.
+ =modus-operandi-theme-distinct-org-blocks=
+ =modus-vivendi-theme-distinct-org-blocks=
-Use a distinct neutral background for Org's blocks and extend the
-background of their beginning and end lines to the edge of the window
-(the "extend" part is for Emacs versions >= 27, whereas before they
-would extend regardless).
+Use a distinct neutral background for Org's blocks. This is the most
+subtle shade of grey used by each theme (it is more subtle than the one
+used for the begin/end lines of the blocks).
The default is to use the same background as the rest of the buffer for
-the contents of the block. The beginning and end lines do not extend to
-the end of the window, meaning that their background is only applied to
-the area covered by their respective keywords (again, the "extend" is
-only relevant for Emacs 27 or higher).
+the contents of the block.
Also see: [[#h:3eebcc85-b104-4774-a742-6dc4dc3dd122][Option for colourful
"rainbow" Org SRC blocks]].
@@ -240,18 +236,12 @@ combination of those two when enabled at the same time,
and the
out-of-the-box experience that the themes provide:
#+NAME: modus-themes-org-blocks
-| | Block Background | Beg/End bg | Beg/End extend |
-|------------------+--------------------+------------------+----------------|
-| default | None (white/black) | Subtle grey | Maybe* |
-| distinct blocks | Most subtle grey | Subtle grey | Yes |
-| rainbow blocks | Accented | Most subtle grey | No |
-| distinct+rainbow | Mixed (per lang) | Most subtle grey | Yes |
-
-By "maybe" in the table above, I mean that we choose not to specify a
-value, letting upstream Org decide on what the standard face should look
-like with regard to the extent of its background. This is consistent
-with the principle of least surprise. For what it's worth, on my Emacs
-27 running Org 9.3, these lines do not have an =:extend t=.
+| | Block Background | Beg/End bg |
+|------------------+--------------------+------------------|
+| default | None (white/black) | Subtle grey |
+| distinct blocks | Most subtle grey | Subtle grey |
+| rainbow blocks | Accented | Most subtle grey |
+| distinct+rainbow | Mixed (per lang) | Most subtle grey |
*Alternatively* you can avoid setting the "rainbow src blocks" option and
instead specify your own language and face combinations, while still
diff --git a/modus-operandi-theme.el b/modus-operandi-theme.el
index 223c841..0693bf1 100644
--- a/modus-operandi-theme.el
+++ b/modus-operandi-theme.el
@@ -561,8 +561,7 @@ as the rest of the buffer."
(defun modus-operandi-theme-org-block-delim (bgaccent fgaccent bg fg)
"Conditionally set the styles of Org block delimiters.
BG, FG, BGACCENT, FGACCENT apply a background and foreground
-colour respectively and set the `:extend' attribute where
-applicable.
+colour respectively.
The former pair is a greyscale combination that should be more
distinct than the background of the block.
@@ -570,14 +569,9 @@ distinct than the background of the block.
The latter pair should be more subtle than the background of the
block, as it is used when source blocks are cast on a
coloured/accented backdrop."
- (if modus-operandi-theme-distinct-org-blocks
- (append
- (and (>= emacs-major-version 27) '(:extend t))
- (if modus-operandi-theme-rainbow-org-src-blocks
- (list :background bgaccent :foreground fgaccent)
- (list :background bg :foreground fg)))
- (list :background bg :foreground fg
- (and (>= emacs-major-version 27) '(:extend nil)))))
+ (if modus-operandi-theme-rainbow-org-src-blocks
+ (list :background bgaccent :foreground fgaccent)
+ (list :background bg :foreground fg)))
(defun modus-operandi-theme-modeline-box (col3d col &optional btn int)
"Control the box properties of the mode line.
diff --git a/modus-vivendi-theme.el b/modus-vivendi-theme.el
index 59ff171..97ad217 100644
--- a/modus-vivendi-theme.el
+++ b/modus-vivendi-theme.el
@@ -561,8 +561,7 @@ as the rest of the buffer."
(defun modus-vivendi-theme-org-block-delim (bgaccent fgaccent bg fg)
"Conditionally set the styles of Org block delimiters.
BG, FG, BGACCENT, FGACCENT apply a background and foreground
-colour respectively and set the `:extend' attribute where
-applicable.
+colour respectively.
The former pair is a greyscale combination that should be more
distinct than the background of the block.
@@ -570,14 +569,9 @@ distinct than the background of the block.
The latter pair should be more subtle than the background of the
block, as it is used when source blocks are cast on a
coloured/accented backdrop."
- (if modus-vivendi-theme-distinct-org-blocks
- (append
- (and (>= emacs-major-version 27) '(:extend t))
- (if modus-vivendi-theme-rainbow-org-src-blocks
- (list :background bgaccent :foreground fgaccent)
- (list :background bg :foreground fg)))
- (list :background bg :foreground fg
- (and (>= emacs-major-version 27) '(:extend nil)))))
+ (if modus-vivendi-theme-rainbow-org-src-blocks
+ (list :background bgaccent :foreground fgaccent)
+ (list :background bg :foreground fg)))
(defun modus-vivendi-theme-modeline-box (col3d col &optional btn int)
"Control the box properties of the mode line.
- [elpa] externals/modus-operandi-theme 80f87a6 32/99: Improve README on Org "rainbow src blocks" option, (continued)
- [elpa] externals/modus-operandi-theme 80f87a6 32/99: Improve README on Org "rainbow src blocks" option, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 867d211 74/99: Modus Vivendi: minor tweak for consistency, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme dbdbb90 82/99: Clarify that specific degree of "bold" is optional, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 2ae2e12 84/99: Remove obsolete comment, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 5c58249 90/99: Use line highlight for flycheck list current line, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 7ad88f0 94/99: Improve distinction between MU4E read and unread, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme b80d4b4 93/99: Add "conf" to org-src-block-faces, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme c8deb91 95/99: Add explicit support for BONGO, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme e536a59 55/99: Tweak Org block begin/end for "rainbow blocks", Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 7a3ceda 56/99: Update documention of "rainbow src blocks" option, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 72d4723 57/99: Remove ':extend t' from all Org block options,
Stefan Monnier <=
- [elpa] externals/modus-operandi-theme 1841211 58/99: Add support for HL-DEFINED, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 4bde9bc 61/99: Update README install section (GNU/Linux distros), Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 23b38df 60/99: Add "bug" keyword to 'hl-todo-keyword-faces' list, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 52a8c0c 62/99: Clarify customisation symbols and possible values, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 0e5f2b0 66/99: Internal re-order of a few faces, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme aea6d29 69/99: Add support for built-in TTY-MENU faces, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme ae2fa4a 70/99: Let Markdown tables always inherit fixed-pitch, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 72e1f6b 68/99: Minor review of MARKDOWN-MODE faces, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 7bf96d9 73/99: Internal: review of docs, outline comments, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 8a555e9 77/99: Internal: fix misplaced comment line, Stefan Monnier, 2020/07/31