[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dslide 1c92fef5e6 004/230: Add an overriding face to the b
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dslide 1c92fef5e6 004/230: Add an overriding face to the breadcrumbs |
Date: |
Sun, 7 Jul 2024 19:00:06 -0400 (EDT) |
branch: elpa/dslide
commit 1c92fef5e624c7de1b0310697072e8f1caa2c8fb
Author: Psionik K <73710933+psionic-k@users.noreply.github.com>
Commit: Psionik K <73710933+psionic-k@users.noreply.github.com>
Add an overriding face to the breadcrumbs
By using `add-face-text-property', this option allows us to tweak the
breadcrumbs while using existing Heading faces.
---
org-tree-slide.el | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/org-tree-slide.el b/org-tree-slide.el
index 4b840077b1..7f20129ad1 100644
--- a/org-tree-slide.el
+++ b/org-tree-slide.el
@@ -171,6 +171,14 @@ nil: keep the same position. The slideshow will start
from the heading
:type 'boolean
:group 'org-tree-slide)
+(defcustom org-tree-slide-breadcrumb-face nil
+ "Face added to the list of faces for breadcrumbs.
+This can be a face name symbol or an anonymous font spec. It
+will be added to the face list, meaning it the original face's
+properties remain unless shadowed."
+ :type 'face
+ :group 'org-tree-slide)
+
(defcustom org-tree-slide-skip-done nil
"Specify to show TODO item only or not."
:type 'boolean
@@ -863,7 +871,13 @@ concat the headers."
'no-tags
org-tree-slide-breadcrumbs-hide-todo-state)
parents))
- (seq-reduce reducer parents nil)))))
+ (let ((breadcrumbs (seq-reduce reducer parents nil)))
+ (when org-tree-slide-breadcrumb-face
+ (add-face-text-property 0 (length breadcrumbs)
+ org-tree-slide-breadcrumb-face
+ nil
+ breadcrumbs))
+ breadcrumbs)))))
(defun org-tree-slide--set-slide-header (blank-lines)
"Set the header with overlay.
- [nongnu] branch elpa/dslide created (now 54e2a8fdc4), ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 1c92fef5e6 004/230: Add an overriding face to the breadcrumbs,
ELPA Syncer <=
- [nongnu] elpa/dslide 50e2a8ca37 009/230: use before-string instead of display for header, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide c00b3ac258 017/230: rearrangement, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 1b67456311 013/230: rearrangement, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide e8ccef6575 014/230: rearrangement, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 94357940d8 029/230: Actions track their own headings, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide dd8fe96b10 033/230: Buffer slide -> Push steps, global presentation, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 66215639a5 047/230: Image action displays inline images in its init method, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 27e87a7c6d 003/230: Option to not show author and title in header even when present, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide f8aa534207 001/230: Fix compiler warnings. Obsolete functions, too long comment, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide e4beb23e57 002/230: Match breadcrumb separator to text properties from previous heading, ELPA Syncer, 2024/07/07