diff --git a/README.org b/README.org index 2d05835..384ee1e 100644 --- a/README.org +++ b/README.org @@ -247,6 +247,7 @@ As explained in the usage instructions and shown in the example, items are colle + To-do keyword faces are applied to keywords in group headers. + Option =org-super-agenda-header-separator= may also be a character, which is automatically repeated to the window width. (Thanks to [[https://github.com/sheepduke][YUE Daian]].) + Option =org-super-agenda-header-properties=. It sets =org-agenda-structural-header= by default, which enables navigating to headers with the default =M-{= / =M-}= bindings in agenda buffers. (Thanks to [[https://github.com/haji-ali][Abdul-Lateef Haji-Ali]].) ++ Option =org-super-agenda-header-prefix=, a string prepended to group headers. ([[https://github.com/alphapapa/org-super-agenda/issues/108][#108]]. Thanks to [[https://github.com/cslux][Christian Schwarzgruber]].) *Changed* + Group headers face is now appended to face list instead of overriding it. diff --git a/org-super-agenda.el b/org-super-agenda.el index 88036cd..a35206c 100644 --- a/org-super-agenda.el +++ b/org-super-agenda.el @@ -200,6 +200,10 @@ If a string, a newline is added. If a character, it is repeated to fill window width, and a newline is added." :type '(choice character string)) +(defcustom org-super-agenda-header-prefix " " + "String prepended to group headers." + :type 'string) + (defcustom org-super-agenda-date-format "%e %B %Y" "Format string for date headers. See `format-time-string'." @@ -288,7 +292,7 @@ face `org-super-agenda-header' appended, and the text properties (character (concat (s-repeat (window-width) org-super-agenda-header-separator) "\n")) (string org-super-agenda-header-separator)))) - (setq s (concat " " s)) + (setq s (concat org-super-agenda-header-prefix s)) (add-face-text-property 0 (length s) 'org-super-agenda-header t s) (org-add-props s org-super-agenda-header-properties 'keymap org-super-agenda-header-map diff --git a/org-super-agenda.info b/org-super-agenda.info index 2ade4a4..9e896e2 100644 --- a/org-super-agenda.info +++ b/org-super-agenda.info @@ -574,6 +574,10 @@ File: README.info, Node: 12-pre, Next: 111, Up: Changelog org-agenda-structural-header by default, which enables navigating to headers with the default M-{ / M-} bindings in agenda buffers. (Thanks to Abdul-Lateef Haji-Ali (https://github.com/haji-ali).) + • Option org-super-agenda-header-prefix, a string prepended to group + headers. (#108 + (https://github.com/alphapapa/org-super-agenda/issues/108). Thanks + to Christian Schwarzgruber (https://github.com/cslux).) *Changed* • Group headers face is now appended to face list instead of @@ -766,16 +770,16 @@ Node: Why are some items not displayed even though I used group selectors for th Node: Why did a group disappear when I moved it to the end of the list?19848 Node: Changelog20423 Node: 12-pre20646 -Node: 11122998 -Node: 1123171 -Node: 10324743 -Node: 10224954 -Node: 10125088 -Node: 10025426 -Node: Development25531 -Node: Bugs25933 -Node: Tests26586 -Node: Credits26905 +Node: 11123227 +Node: 1123400 +Node: 10324972 +Node: 10225183 +Node: 10125317 +Node: 10025655 +Node: Development25760 +Node: Bugs26162 +Node: Tests26815 +Node: Credits27134  End Tag Table