branch: externals/modus-operandi-theme
commit 7e297db392245a25e862a19e375f309077654ff2
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Add support for OUTLINE-MINOR-FACES
That package adds a background colour to each heading of the built-in
`outline-minor-mode'.
The face `outline-minor-0' is inherited by all other face levels. No
need to style those explicitly.
---
README.org | 1 +
modus-operandi-theme.el | 4 ++++
modus-vivendi-theme.el | 4 ++++
3 files changed, 9 insertions(+)
diff --git a/README.org b/README.org
index 17322d9..40ca093 100644
--- a/README.org
+++ b/README.org
@@ -287,6 +287,7 @@ the "full support" may not be 100% true…
+ org-recur
+ origami
+ outline-mode
++ outline-minor-faces
+ package (=M-x list-packages=)
+ paren-face
+ pass
diff --git a/modus-operandi-theme.el b/modus-operandi-theme.el
index ec26783..a59eb93 100644
--- a/modus-operandi-theme.el
+++ b/modus-operandi-theme.el
@@ -177,6 +177,7 @@
;; org-recur
;; origami
;; outline-mode
+;; outline-minor-faces
;; package (M-x list-packages)
;; paren-face
;; pass
@@ -1963,6 +1964,9 @@ between foreground and background is >= 7:1)."
:foreground ,cyan-active :weight bold))))
`(outline-8 ((,class (:inherit ,modus-theme-variable-pitch
:foreground ,magenta-active :weight bold))))
+ ;;;; outline-minor-faces (applies backgrounds to `outline-minor-mode')
+ `(outline-minor-0 ((,class (,@(and (>= emacs-major-version 27) '(:extend t))
+ :background ,bg-alt :weight bold))))
;;;; package (M-x list-packages)
`(package-description ((,class (:foreground ,fg-special-cold))))
`(package-help-section-name ((,class (:foreground ,magenta-alt-other
:weight bold))))
diff --git a/modus-vivendi-theme.el b/modus-vivendi-theme.el
index 5427741..4051b2f 100644
--- a/modus-vivendi-theme.el
+++ b/modus-vivendi-theme.el
@@ -177,6 +177,7 @@
;; org-recur
;; origami
;; outline-mode
+;; outline-minor-faces
;; package (M-x list-packages)
;; paren-face
;; pass
@@ -1963,6 +1964,9 @@ between foreground and background is >= 7:1)."
:foreground ,cyan-active :weight bold))))
`(outline-8 ((,class (:inherit ,modus-theme-variable-pitch
:foreground ,magenta-active :weight bold))))
+ ;;;; outline-minor-faces (applies backgrounds to `outline-minor-mode')
+ `(outline-minor-0 ((,class (,@(and (>= emacs-major-version 27) '(:extend t))
+ :background ,bg-alt :weight bold))))
;;;; package (M-x list-packages)
`(package-description ((,class (:foreground ,fg-special-cold))))
`(package-help-section-name ((,class (:foreground ,magenta-alt-other
:weight bold))))