Skip to content

Commit

Permalink
Add customization option for the header prefix (Fix alphapapa#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
casch-at committed Sep 20, 2019
1 parent f0ee7ed commit f383c38
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion org-super-agenda.el
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,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 " "
"Header prefix for headers."
:type 'string)

(defcustom org-super-agenda-date-format "%e %B %Y"
"Format string for date headers.
See `format-time-string'."
Expand Down Expand Up @@ -270,7 +274,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 nil
'keymap org-super-agenda-header-map
Expand Down

0 comments on commit f383c38

Please sign in to comment.