[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/modus-operandi-theme 80f87a6 32/99: Improve README on O
From: |
Stefan Monnier |
Subject: |
[elpa] externals/modus-operandi-theme 80f87a6 32/99: Improve README on Org "rainbow src blocks" option |
Date: |
Fri, 31 Jul 2020 09:25:21 -0400 (EDT) |
branch: externals/modus-operandi-theme
commit 80f87a68fcb7175db15316326ffa246ebacf3630
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Improve README on Org "rainbow src blocks" option
---
README.org | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/README.org b/README.org
index 93c2b7a..261d2ab 100644
--- a/README.org
+++ b/README.org
@@ -224,11 +224,29 @@ 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
designed to work well with all foreground values that are used in
-programming modes.
+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:
+
+#+begin_src emacs-lisp
+(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, 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]].
+
Also see: [[#h:ca57a3af-6f79-4530-88c0-e35eda9d3bf7][Option for distinct Org
blocks]].
** Option for colourful "rainbow" headings
- [elpa] externals/modus-operandi-theme 80e95c0 45/99: Use more appropriate colour for PAREN-FACE package, (continued)
- [elpa] externals/modus-operandi-theme 80e95c0 45/99: Use more appropriate colour for PAREN-FACE package, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 28d5b83 47/99: Add README suggestions for "faint syntax" option, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme cba4339 51/99: Add support for ESHELL-FRINGE-STATUS, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme cfc5d24 54/99: Minor tweaks to the README, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme efa3431 63/99: MAJOR REVIEW of Org block custom option, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme e22d75d 71/99: Let org timestamps inherit fixed-pitch, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 0a0af53 65/99: Add support for BOON, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 94e1138 76/99: Remove extra properties from outline-minor-mode, Stefan Monnier, 2020/07/31
- [elpa] externals/modus-operandi-theme 426578f 75/99: MAJOR REFACTOR of bold weight and bold constructs, Stefan Monnier, 2020/07/31
- [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 <=
- [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, 2020/07/31