summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--custom/jao-custom-org.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/custom/jao-custom-org.el b/custom/jao-custom-org.el
index d971346..98d49f0 100644
--- a/custom/jao-custom-org.el
+++ b/custom/jao-custom-org.el
@@ -56,8 +56,16 @@
(defun jao-org-agenda-fmt-date (date)
(org-agenda-format-date-aligned date))
+(defun jao-org-agenda-title ()
+ (let ((fill-column (window-width)))
+ (with-temp-buffer
+ (insert " agenda ")
+ (center-line)
+ (insert "\n\n")
+ (buffer-substring-no-properties (point-min) (point-max)))))
+
(setq org-agenda-custom-commands
- '(("j" agenda "" ((org-agenda-overriding-header "Agenda \n")
+ '(("j" agenda "" ((org-agenda-overriding-header #'jao-org-agenda-title)
(org-agenda-ndays-to-span 14)))
("w" todo "WAITING" nil)
("W" agenda "" ((org-agenda-ndays 21))))