[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-modern 664f57ae12 10/65: Add option org-modern-hide
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-modern 664f57ae12 10/65: Add option org-modern-hide-stars |
Date: |
Mon, 7 Mar 2022 12:57:44 -0500 (EST) |
branch: externals/org-modern
commit 664f57ae120b5d5fa6a6190de13fc07bc85e7648
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Add option org-modern-hide-stars
---
org-modern.el | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/org-modern.el b/org-modern.el
index 91b39bf06b..3838df907b 100644
--- a/org-modern.el
+++ b/org-modern.el
@@ -48,6 +48,10 @@
Set to nil to disable styling the headlines."
:type '(choice (const nil) (vector string)))
+(defcustom org-modern-hide-stars 'leading
+ "Make the leading stars invisible."
+ :type '(choice boolean (const leading)))
+
(defcustom org-modern-timestamp t
"Prettify time stamps, e.g. <2022-03-01>.
Set to nil to disable styling the time stamps."
@@ -395,8 +399,11 @@ Set to nil to disable the progress bar."
(when org-modern-checkbox
'(("^[ \t]*\\(?:[-+*]\\|[0-9]+[.)]\\)[ \t]+\\(\\[[ X-]\\]\\)[ \t]"
(0 (org-modern--checkbox)))))
- (when org-modern-star
- '(("^\\(\\**\\)\\(\\*\\) " (0 (org-modern--star)))))
+ (when (or org-modern-star org-modern-hide-stars)
+ `(("^\\(\\**\\)\\(\\*\\) "
+ ,@(and (not (eq org-modern-hide-stars t)) org-modern-star '((0
(org-modern--star))))
+ ,@(and (eq org-modern-hide-stars 'leading) '((1 '(face nil
invisible t))))
+ ,@(and (eq org-modern-hide-stars t) '((0 '(face nil invisible
t)))))))
(when org-modern-horizontal-rule
'(("^-\\{5,\\}$" 0 '(face org-modern-horizontal-rule display (space
:width text)))))
(when org-modern-table
- [elpa] externals/org-modern e13be0f433 40/65: Preserve line-prefix and wrap-prefix if org-indent-mode is enabled (Fix #7), (continued)
- [elpa] externals/org-modern e13be0f433 40/65: Preserve line-prefix and wrap-prefix if org-indent-mode is enabled (Fix #7), ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 4f5d010a9f 42/65: Use en-dash for list bullets, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 394460be40 50/65: Document minimal setup (Fix #13), ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 37bbac24a0 55/65: Increase font sizes by default (See #19), ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern a15d8353ed 61/65: Fix :type, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 83ee897ac1 63/65: Update face when org-modern-variable-pitch is changed, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 7bce289ac6 62/65: Improve timestamp handling, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 3baf87f80e 09/65: README: Mention manual installation, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 5278d9787c 01/65: Initial commit, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 8c4bc6a320 12/65: Ensure that todo keywords stay editable (See #2), ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 664f57ae12 10/65: Add option org-modern-hide-stars,
ELPA Syncer <=
- [elpa] externals/org-modern 1f0db02412 17/65: README reorganization, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern dbbb6c297c 18/65: Add license, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 7a245a435d 24/65: Update example, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 9510fa1550 25/65: Update example, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 34b36df5b7 30/65: Use two different space objects, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 00d7fd7324 33/65: Add range example, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 787e69884e 35/65: Fix regexp search for end of block, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 5c46042666 36/65: Simplify org-modern--timestamp, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern c32dd29318 37/65: timestamps: Add support for repeaters, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern dd7d45878f 41/65: Do not add fringes to blocks when org-indent-mode is enabled (See #7), ELPA Syncer, 2022/03/07