From 13127a48116eeb956c83cbc8af1745da0639fc09 Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Sat, 28 May 2022 15:36:07 +0200 Subject: [PATCH] Shadow Org's org-table face --- README.org | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index 5a92126..0356b06 100644 --- a/README.org +++ b/README.org @@ -443,7 +443,7 @@ show a few tweaks to improve visibility without theming: #+name: lst:shadow-font-lock-faces #+begin_src emacs-lisp (with-eval-after-load 'emacs - ;; Shadow the definition in org-faces.el: + ;; Shadow two definitions in org-faces.el: (defface org-block ;; https://emacs.stackexchange.com/a/9604 answers: ;; How to override a defined face for light and dark backgrounds? @@ -465,7 +465,20 @@ show a few tweaks to improve visibility without theming: verse and quote blocks are fontified using the `org-verse' and `org-quote' faces, which inherit from `org-block'.") - ;; Shadow the definition in sh-script.el: + (defface org-table + ;; https://emacs.stackexchange.com/a/9604 answers: + ;; How to override a defined face for light and dark backgrounds? + `((((background dark)) + :inherit (fixed-pitch) + ,@(and (>= emacs-major-version 27) '(:extend t)) + :background "#444444") + (t + :inherit (fixed-pitch) + ,@(and (>= emacs-major-version 27) '(:extend t)) + :background "#FFFFD0")) + "My face for tables.") + + ;; Shadow one definition in sh-script.el: (defface sh-heredoc '((((class color) (background dark)) (:foreground "yellow"))