From 401b5d111c2124c3962c18b436872c12d46c2bf9 Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Sat, 8 Oct 2022 20:25:17 +0200 Subject: [PATCH] Demarcate babel source block --- README.org | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/README.org b/README.org index 96b3111..b04e0de 100644 --- a/README.org +++ b/README.org @@ -354,8 +354,9 @@ fonts properly. It boils down to two rules: The code in listing [[lst:configure-face-attributes]] source implements those rules. Listing [[lst:set-default-face-height]] shows that font scaling is easy in case of proper initialization of all face heigths. Listing -[[lst:fix-gtk-color-for-invert-default-face]] and listing [[lst:shadow-font-lock-faces]] -show a few tweaks to improve visibility without theming: +[[lst:fix-gtk-color-for-invert-default-face]], [[lst:shadow-org-font-lock-faces]], and +[[lst:shadow-org-font-lock-faces]] show a few tweaks to improve visibility without +theming: 1. Fixing the =gtk= background color of the already loaded =region= face. 2. Toggling between a dark and light background by means of src_emacs-lisp{(invert-default-face)}. @@ -447,9 +448,9 @@ show a few tweaks to improve visibility without theming: (fix-gtk-region-face-background-color)) #+end_src -#+caption[Shadow font-lock faces to improve the readability]: -#+caption: Shadow font-lock faces to improve the readability. -#+name: lst:shadow-font-lock-faces +#+caption[Shadow Org font-lock faces to improve the readability]: +#+caption: Shadow Org font-lock faces to improve the readability. +#+name: lst:shadow-org-font-lock-faces #+begin_src emacs-lisp (with-eval-after-load 'emacs ;; Shadow two definitions in org-faces.el: @@ -485,8 +486,14 @@ show a few tweaks to improve visibility without theming: :inherit (fixed-pitch) ,@(and (>= emacs-major-version 27) '(:extend t)) :background "#FFFFD0")) - "My face for tables.") + "My face for tables.")) +#+end_src +#+caption[Shadow Emacs font-lock faces to improve the readability]: +#+caption: Shadow Emacs font-lock faces to improve the readability. +#+name: lst:shadow-emacs-font-lock-faces +#+begin_src emacs-lisp + (with-eval-after-load 'emacs ;; Shadow one definition in sh-script.el: (defface sh-heredoc '((((class color) (background dark))