[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/modus-operandi-theme 624cbd6 46/99: Improve README for
From: |
Stefan Monnier |
Subject: |
[elpa] externals/modus-operandi-theme 624cbd6 46/99: Improve README for Org-block-related options |
Date: |
Fri, 31 Jul 2020 09:25:23 -0400 (EDT) |
branch: externals/modus-operandi-theme
commit 624cbd63bf798613a23fdaf33df68a96dc57054a
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Improve README for Org-block-related options
See issue 57 for screenshots (and to send feedback):
https://gitlab.com/protesilaos/modus-themes/-/issues/57
---
README.org | 43 +++++++++++++++++++++++++++++--------------
1 file changed, 29 insertions(+), 14 deletions(-)
diff --git a/README.org b/README.org
index 261d2ab..848ff1c 100644
--- a/README.org
+++ b/README.org
@@ -207,9 +207,10 @@ background of their beginning and end lines to the edge of
the window
would extend regardless).
The default is to use the same background as the rest of the buffer for
-the contents of the block, while beginning and end lines do not extend
-to the end of the window (again, the "extend" is for Emacs 27 or
-higher).
+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).
Also see: [[#h:3eebcc85-b104-4774-a742-6dc4dc3dd122][Option for colourful
"rainbow" Org SRC blocks]].
@@ -223,15 +224,28 @@ Also see:
[[#h:3eebcc85-b104-4774-a742-6dc4dc3dd122][Option for colourful "rainb
Apply a colour-coded background to Org src blocks. The exact colour of
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).
-
-The default is to use no background at all (it is the same as the rest
-of the buffer).
-
-*Alternatively* you can specify your own language+face combination. Here
-is an example that you can put in your Emacs configuration file:
+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).
+
+*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:
#+begin_src emacs-lisp
(setq org-src-block-faces
@@ -241,11 +255,12 @@ is an example that you can put in your Emacs
configuration file:
The faces: =modus-theme-nuanced-{red,green,yellow,blue,magenta,cyan}=.
-Note that if you update the referenced faces, 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.
+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.
-Consider sending
[[https://gitlab.com/protesilaos/modus-themes/-/issues/57][feedback in issue
57]].
+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]].
- [elpa] externals/modus-operandi-theme 0e5f2b0 66/99: Internal re-order of a few faces, (continued)
- [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
- [elpa] externals/modus-operandi-theme d8986b7 79/99: Let outline-minor-faces respect "section headings", Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme c2b800d 81/99: Tweak default background of outline-minor-faces, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme ffd9f1f 85/99: Update section on mixed font docs, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme c376b08 98/99: Prepare version 0.11.0, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 624cbd6 46/99: Improve README for Org-block-related options,
Stefan Monnier <=
- [elpa] externals/modus-operandi-theme 5d2e6ae 49/99: Reference issue 54 regarding "mixed fonts" in Org, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 1cf8571 53/99: Add support for ESHELL-PROMPT-EXTRAS, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme e32ca7d 37/99: Refine Org block beg/end line conditional styles, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 34eeaa8 40/99: Tweak 'secondary-selection' face, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 362f626 48/99: Remove now-outdated README note, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 16ad838 59/99: Tweak keycast for when "3D modeline" option is 't', Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 89f94d5 67/99: Add link for more font- and writing- related confs, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 3306e4b 64/99: Amend adeee9f73:Normalise luminance of nuanced bgs, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 3f18a36 72/99: RENAME CUSTOM OPTION for variable-pitch headings, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 099fe43 78/99: Revert commit 94e113878, Stefan Monnier, 2020/07/31