[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-superstar 377ad5af7b 051/162: Preparing documentation
From: |
Stefan Kangas |
Subject: |
[nongnu] elpa/org-superstar 377ad5af7b 051/162: Preparing documentation for new release |
Date: |
Fri, 31 Dec 2021 19:35:24 -0500 (EST) |
branch: elpa/org-superstar
commit 377ad5af7b8b0c34491a5cf1dd7d18482d69fab2
Author: D. Williams <d.williams@posteo.net>
Commit: D. Williams <d.williams@posteo.net>
Preparing documentation for new release
Version bump to 0.4.0.
New feature seems to work reliably.
Renamed --hbullets to --hbullets-length to avoid confusion with
--bullet.
Replaced assoc call with more appropriate assoc-string.
---
org-superstar.el | 23 +++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)
diff --git a/org-superstar.el b/org-superstar.el
index 7958a8d532..ad59d34684 100644
--- a/org-superstar.el
+++ b/org-superstar.el
@@ -5,7 +5,7 @@
;; Author: D. Williams <d.williams@posteo.net>
;; Maintainer: D. Williams <d.williams@posteo.net>
;; Keywords: faces, outlines
-;; Version: 0.3.0
+;; Version: 0.4.0
;; Homepage: https://github.com/dw-github-mirror/org-superstar-mode
;; Package-Requires: ((org "9.1.9") (emacs "26.2"))
@@ -31,12 +31,13 @@
;; completely rewritten (See https://github.com/sabof/org-bullets).
;; Currently, this package supports:
-;; * Prettifying org header lines by:
+;; * Prettifying org heading lines by:
;; + replacing trailing bullets by UTF-8 bullets
;; + hiding leading stars or customizing their look
;; + applying a custom face to the header bullet
;; + applying a custom face to the leading bullets
;; + using double-bullets for inline tasks (see org-inlinetask.el)
+;; + (optional) using special bullets for TODO keywords
;; * Prettifying org plain list bullets by:
;; + replacing each bullet type (*, + and -) with UTF-8 bullets
;; + applying a custom face to item bullets
@@ -126,7 +127,8 @@ variable for your changes to take effect."
"Alist of UTF-8 bullets for TODO items.
Each key should be a TODO keyword, and each value should the UTF8
-character to be displayed.
+character to be displayed. Keywords that are not included in the
+alist are handled like normal headings.
You should re-enable ‘\\[org-superstar-mode]’ after changing this
variable for your changes to take effect."
@@ -243,7 +245,7 @@ If the integer exceeds the length of
‘org-superstar-headline-bullets-list’, set it to the length and
raise an error."
(let ((ncycle (widget-value text-field))
- (maxcycle (org-superstar--hbullets)))
+ (maxcycle (org-superstar--hbullets-length)))
(unless (<= 1 ncycle maxcycle)
(widget-put
text-field
@@ -345,17 +347,22 @@ If no TODO property is found, return nil."
"Return the desired TODO item bullet, if defined.
If no entry can be found in ‘org-superstar-todo-bullet-alist’ for
the current keyword, return nil."
- (cdr (assoc
+ (cdr (assoc-string
(org-superstar--get-todo (match-beginning 0))
org-superstar-todo-bullet-alist)))
-(defun org-superstar--hbullets ()
+(defun org-superstar--hbullets-length ()
"Return the length of ‘org-superstar-headline-bullets-list’."
(length org-superstar-headline-bullets-list))
(defun org-superstar--hbullet (level)
"Return the desired headline bullet replacement for LEVEL N.
+If the headline is also a TODO item, you can override the usually
+displayed bullet depending on the TODO keyword by setting
+‘org-superstar-special-todo-items’ to t and adding relevant
+TODO keyword entries to ‘org-superstar-todo-bullet-alist’.
+
See also ‘org-superstar-cycle-headline-bullets’."
(let ((max-bullets org-superstar-cycle-headline-bullets)
(n (if org-odd-levels-only (/ (1- level) 2) (1- level)))
@@ -369,11 +376,11 @@ See also ‘org-superstar-cycle-headline-bullets’."
(max-bullets
(string-to-char
(elt org-superstar-headline-bullets-list
- (% n (org-superstar--hbullets)))))
+ (% n (org-superstar--hbullets-length)))))
(t
(string-to-char
(elt org-superstar-headline-bullets-list
- (min n (1- (org-superstar--hbullets)))))))))
+ (min n (1- (org-superstar--hbullets-length)))))))))
(defun org-superstar--ibullet (bullet-string)
"Return BULLET-STRINGs desired UTF-8 replacement.
- [nongnu] elpa/org-superstar d6071eb477 071/162: Updating README to fit first major version (1.0.0), (continued)
- [nongnu] elpa/org-superstar d6071eb477 071/162: Updating README to fit first major version (1.0.0), Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar c3de9e52a8 035/162: adding reference files in faceup format, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 4517690c41 021/162: Copied description from README, added more UTF8 bullet hints., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar da32880de2 047/162: Honor org-odd-levels-only when computing heading levels., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar db21c0f07e 037/162: removing already moved file. git is weird., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar d04eb018fd 060/162: Moved old announcements to the bottom of the README., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 92336ba0fe 054/162: added a new variable for upcoming feature: remove-leading-stars, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar c9f1406645 067/162: forgot quote, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar bd36b34d93 066/162: further minimized test slomode.el, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 6fcf4b58fb 059/162: Treat org-hide-leading-stars-before-indent-mode like the base variable., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 377ad5af7b 051/162: Preparing documentation for new release,
Stefan Kangas <=
- [nongnu] elpa/org-superstar d2f03b9666 041/162: removed spurious whitespace, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 6089c47f8b 031/162: Major cleanup: fix fontification edge cases, remove redundant variables., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 212cf5821e 063/162: Version bump to signify patch., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar e59514a287 055/162: implementing first draft version of invisible leading bullets, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar db2e27d68a 049/162: Adding first draft of TODO item support., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 95ad994f82 072/162: fixed typo, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 2f9f9d6b21 070/162: version bump to 1.0.0, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 61bf289b42 073/162: Removed no longer needed temporary testing file., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 31c8dc54a9 082/162: updating README to reflect addition to MELPA, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 7a33a131a2 095/162: Removed MWE file issue-10.org, Stefan Kangas, 2021/12/31