[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/modus-operandi-theme 7a3ceda 56/99: Update documention
From: |
Stefan Monnier |
Subject: |
[elpa] externals/modus-operandi-theme 7a3ceda 56/99: Update documention of "rainbow src blocks" option |
Date: |
Fri, 31 Jul 2020 09:25:25 -0400 (EDT) |
branch: externals/modus-operandi-theme
commit 7a3cedaf458c0e33b003fb09a3ffdca8490dbee5
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Update documention of "rainbow src blocks" option
---
README.org | 51 ++++++++++++++++++++++++++++++---------------------
1 file changed, 30 insertions(+), 21 deletions(-)
diff --git a/README.org b/README.org
index b125e84..ff2187d 100644
--- a/README.org
+++ b/README.org
@@ -227,34 +227,45 @@ the background depends on the language being used. These
colours are
"nuanced" variants of red, green, yellow, blue, magenta, cyan: they are
designed to work well with all foreground values that are used in
programming modes (meaning that they respect the minimum 7:1 contrast
-ratio). To make the block feel like a complete rectangle, the special
-keywords that delimit the beginning and end of the block explicitly have
-their background extended to the edge of the window.
-
-The default is to use no background at all, meaning that the block is
-the same as the rest of the buffer, while the begin/end lines only apply
-a background colour to the area covered by the length of their
-respective keywords.
-
-This is also true for the "distinct Org blocks" option mentioned in the
-previous section. Compared to that other option, the "begin" and "end"
-lines of Org blocks will have a subtler grey background, so that the
-focus is on the more colourful block (whereas the "distinct Org blocks"
-option retains the same shade of grey as the default looks, which is a
-bit more pronounced, and only appends the =:extend t= property).
+ratio).
+
+The default is to use no background at all: the block is the same as the
+rest of the buffer.
+
+Also see: [[#h:ca57a3af-6f79-4530-88c0-e35eda9d3bf7][Option for distinct Org
blocks]].
+
+This table summarises the differences between the "rainbow src blocks"
+option, the "distinct blocks" mentioned in the section right above, a
+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=.
*Alternatively* you can avoid setting the "rainbow src blocks" option and
-instead specify your own language and face combination. Here is an
-example that you can put in your Emacs configuration file:
+instead specify your own language and face combinations, while still
+using the bespoke faces defined by the Modus themes. Here is an example
+that you can put in your Emacs configuration file:
#+begin_src emacs-lisp
+;; Assign a language to a face:
+;; modus-theme-nuanced-{red,green,yellow,blue,magenta,cyan}
(setq org-src-block-faces
'(("emacs-lisp" 'modus-theme-nuanced-yellow)
("python" 'modus-theme-nuanced-red)))
#+end_src
-The faces: =modus-theme-nuanced-{red,green,yellow,blue,magenta,cyan}=.
-
Note that if you update the referenced faces using this alternative
method, you will need to evaluate =org-src-block-faces= and then either
=M-x org-mode= to refresh the buffer or start typing in each code block.
@@ -262,8 +273,6 @@ method, you will need to evaluate =org-src-block-faces= and
then either
Consider sending
[[https://gitlab.com/protesilaos/modus-themes/-/issues/57][feedback in issue
57]] as this option is still subject to
further refinements.
-Also see: [[#h:ca57a3af-6f79-4530-88c0-e35eda9d3bf7][Option for distinct Org
blocks]].
-
** Option for colourful "rainbow" headings
:PROPERTIES:
:CUSTOM_ID: h:1be42afb-bcd2-4425-b956-0ba93eb960c2
- [elpa] externals/modus-operandi-theme 37b6bd0 88/99: Adds a readme note referring to #60 for HTML mails, (continued)
- [elpa] externals/modus-operandi-theme 37b6bd0 88/99: Adds a readme note referring to #60 for HTML mails, Stefan Monnier, 2020/07/31
- [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 <=
- [elpa] externals/modus-operandi-theme 72d4723 57/99: Remove ':extend t' from all Org block options, Stefan Monnier, 2020/07/31
- [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