Shadow Org's org-table face

This commit is contained in:
Gerard Vermeulen 2022-05-28 15:36:07 +02:00
parent e755f446dd
commit 13127a4811
1 changed files with 15 additions and 2 deletions

View File

@ -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"))