aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.el45
1 files changed, 25 insertions, 20 deletions
diff --git a/init.el b/init.el
index 4b996f4..d27da26 100644
--- a/init.el
+++ b/init.el
@@ -1076,29 +1076,33 @@
1076;; am quite forgetful. 1076;; am quite forgetful.
1077;; --------------------------------- 1077;; ---------------------------------
1078 1078
1079
1080;; Agenda configuration 1079;; Agenda configuration
1080(defun mm/org-agenda-update-agenda-files ()
1081 "Update the list of `org-agenda-files'."
1082 (interactive)
1083 org-agenda-start-with-log-mode t
1084 org-agenda-files (append '("~/kb/agenda.org"
1085 "~/kb/self.routine.org"
1086 "~/kb/inbox.org"
1087 "~/kb/shop.org")
1088 (file-expand-wildcards "~/kb/*log.org*")
1089 (file-expand-wildcards "~/kb/*agenda.org*")))
1090
1081(use-package org 1091(use-package org
1082 :delight 1092 :delight
1083 :config 1093 :config
1084 (setq org-agenda-start-with-log-mode t 1094 (mm/org-agenda-update-agenda-files)
1085 org-agenda-files (append '("~/kb/agenda.org" 1095 (setq org-todo-keywords
1086 "~/kb/self.routine.org" 1096 '((sequence "TODO(t)" "SOMEDAY(s)" "SOON(o)" "NEXT(n)"
1087 "~/kb/inbox.org" 1097 "IN-PROGRESS(i)" "WAITING(w)" "HOLD(h)" "REVIEW(r)"
1088 "~/kb/shop.org") 1098 "|" "DONE(d)" "CANCELED(c)")
1089 (file-expand-wildcards "~/kb/*log.org*") 1099 (sequence "EVENT(t)" "EVENT_IN-PROGRESS(i)"
1090 (file-expand-wildcards "~/kb/*agenda.org*")) 1100 "|" "MISSED_EVENT(m)" "CANCELLED_EVENT(c)" "ATTENDED_EVENT(d)")
1091 org-todo-keywords 1101 (sequence "APPT(t)" "APPT_IN-PROGRESS(i)"
1092 '((sequence "TODO(t)" "SOMEDAY(sd)" "SOON(sn)" "NEXT(n)" 1102 "|" "MISSED_APPT(m)" "ATTENDED_APPT(d)" "CANCELLED_APPT(c)")
1093 "IN-PROGRESS(i)" "WAITING(w)" "HOLD(h)" "REVIEW(re)" 1103 (sequence "CLASS(t)" "CLASS_IN-PROGRESS(i)"
1094 "|" "DONE(d)" "CANCELED(ca)") 1104 "|" "ATTENDED_CLASS(d)" "MISSED_CLASS(m)" "CANCELED_CLASS(c)")
1095 (sequence "EVENT(e)" 1105 (sequence "EAT(t)" "EATING(i)" "|" "ATE(a)"))
1096 "|" "MISSED_EVENT(me)" "ATTENDED_EVENT(ae)")
1097 (sequence "APPT(ap)"
1098 "|" "MISSED_APPT(ma)" "ATTENDED_APPT(aa)" "CANCELLED_APPT(ca)")
1099 (sequence "CLASS(cl)"
1100 "|" "ATTENDED_CLASS(ac)" "MISSED_CLASS(mc)" "CANCELED_CLASS(cc)")
1101 (sequence "ATE(a)"))
1102 ;; org-agenda-span 1 1106 ;; org-agenda-span 1
1103 org-agenda-start-day "0d" 1107 org-agenda-start-day "0d"
1104 org-agenda-start-on-weekday nil 1108 org-agenda-start-on-weekday nil
@@ -1124,7 +1128,8 @@
1124 org-habit-following-days 0 1128 org-habit-following-days 0
1125 org-habit-preceding-days 0) 1129 org-habit-preceding-days 0)
1126 :bind (("C-c a" . org-agenda) 1130 :bind (("C-c a" . org-agenda)
1127 ("C-c n a" . (lambda () (interactive) (find-file "~/kb/agenda.org"))))) 1131 ("C-c n a" . (lambda () (interactive) (find-file "~/kb/agenda.org")))
1132 ("C-c n s" . org-save-all-org-buffers)))
1128 1133
1129;; Super Agenda 1134;; Super Agenda
1130(use-package org-super-agenda 1135(use-package org-super-agenda