Demarcate babel source block

This commit is contained in:
Gerard Vermeulen 2022-10-08 20:25:17 +02:00
parent 0efadd63dc
commit 401b5d111c

View File

@ -354,8 +354,9 @@ fonts properly. It boils down to two rules:
The code in listing [[lst:configure-face-attributes]] source implements those 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 Listing [[lst:set-default-face-height]] shows that font scaling is easy in case of
proper initialization of all face heigths. Listing proper initialization of all face heigths. Listing
[[lst:fix-gtk-color-for-invert-default-face]] and listing [[lst:shadow-font-lock-faces]] [[lst:fix-gtk-color-for-invert-default-face]], [[lst:shadow-org-font-lock-faces]], and
show a few tweaks to improve visibility without theming: [[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. 1. Fixing the =gtk= background color of the already loaded =region= face.
2. Toggling between a dark and light background by means of 2. Toggling between a dark and light background by means of
src_emacs-lisp{(invert-default-face)}. 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)) (fix-gtk-region-face-background-color))
#+end_src #+end_src
#+caption[Shadow font-lock faces to improve the readability]: #+caption[Shadow Org font-lock faces to improve the readability]:
#+caption: Shadow font-lock faces to improve the readability. #+caption: Shadow Org font-lock faces to improve the readability.
#+name: lst:shadow-font-lock-faces #+name: lst:shadow-org-font-lock-faces
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'emacs (with-eval-after-load 'emacs
;; Shadow two definitions in org-faces.el: ;; Shadow two definitions in org-faces.el:
@ -485,8 +486,14 @@ show a few tweaks to improve visibility without theming:
:inherit (fixed-pitch) :inherit (fixed-pitch)
,@(and (>= emacs-major-version 27) '(:extend t)) ,@(and (>= emacs-major-version 27) '(:extend t))
:background "#FFFFD0")) :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: ;; Shadow one definition in sh-script.el:
(defface sh-heredoc (defface sh-heredoc
'((((class color) (background dark)) '((((class color) (background dark))