aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.el73
1 files changed, 58 insertions, 15 deletions
diff --git a/init.el b/init.el
index 7d3bc04..6a05804 100644
--- a/init.el
+++ b/init.el
@@ -976,18 +976,24 @@
976 :delight 976 :delight
977 :config 977 :config
978 (setq org-agenda-start-with-log-mode t 978 (setq org-agenda-start-with-log-mode t
979 org-agenda-files '("~/kb/agenda.org" 979 org-agenda-files (append '("~/kb/agenda.org"
980 "~/kb/inbox.org" 980 "~/kb/self.routine.org"
981 "~/kb/log.org") 981 "~/kb/inbox.org"
982 "~/kb/log.org"
983 "~/kb/shop.org")
984 (file-expand-wildcards "~/kb/*.agenda.org*"))
982 org-todo-keywords 985 org-todo-keywords
983 '((sequence "TODO(t)" "IN-PROGRESS(i)" "WAITING(w)" "HOLD(h)" 986 '((sequence "TODO(t)" "SOMEDAY(sd)" "SOON(sn)" "NEXT(n)"
984 "REVIEW(re)" "|" "DONE(d)" "CANCELED(ca)") 987 "IN-PROGRESS(i)" "WAITING(w)" "HOLD(h)" "REVIEW(re)"
985 (sequence "EVENT(e)" "|" "MISSED_EVENT(me)" "ATTENDED_EVENT(ae)") 988 "|" "DONE(d)" "CANCELED(ca)")
986 (sequence "APPT(ap)" "|" "MISSED_APPT(ma)" "ATTENDED_APPT(aa)") 989 (sequence "EVENT(e)"
987 (sequence "CLASS(cl)" "|" "ATTENDED_CLASS(ac)" 990 "|" "MISSED_EVENT(me)" "ATTENDED_EVENT(ae)")
988 "MISSED_CLASS(mc)" "CANCELED_CLASS(cc)") 991 (sequence "APPT(ap)"
989 (sequence "REMINDER(rm)")) 992 "|" "MISSED_APPT(ma)" "ATTENDED_APPT(aa)" "CANCELLED_APPT(ca)")
990 org-agenda-span 7 993 (sequence "CLASS(cl)"
994 "|" "ATTENDED_CLASS(ac)" "MISSED_CLASS(mc)" "CANCELED_CLASS(cc)")
995 (sequence "ATE(a)"))
996 ;; org-agenda-span 1
991 org-agenda-start-day "0d" 997 org-agenda-start-day "0d"
992 org-agenda-start-on-weekday nil 998 org-agenda-start-on-weekday nil
993 org-agenda-use-time-grid t 999 org-agenda-use-time-grid t
@@ -998,6 +1004,7 @@
998 org-agenda-skip-scheduled-if-done t 1004 org-agenda-skip-scheduled-if-done t
999 org-agenda-skip-deadline-if-done t 1005 org-agenda-skip-deadline-if-done t
1000 org-agenda-show-done-always-green nil 1006 org-agenda-show-done-always-green nil
1007 org-deadline-warning-days 3
1001 org-agenda-compact-blocks t 1008 org-agenda-compact-blocks t
1002 org-log-done 'time 1009 org-log-done 'time
1003 org-log-into-drawer t) 1010 org-log-into-drawer t)
@@ -1006,12 +1013,48 @@
1006 (setq org-habit-show-habits t 1013 (setq org-habit-show-habits t
1007 org-habit-show-habits-only-for-today nil 1014 org-habit-show-habits-only-for-today nil
1008 org-habit-show-all-today nil 1015 org-habit-show-all-today nil
1009 org-habit-graph-column 60 1016 org-habit-graph-column 0
1010 org-habit-following-days 1 1017 org-habit-following-days 0
1011 org-habit-preceding-days 21) 1018 org-habit-preceding-days 0)
1012 :bind (("C-c a" . org-agenda-list) 1019 :bind (("C-c a" . org-agenda)
1013 ("C-c n a" . (lambda () (interactive) (find-file "~/kb/agenda.org"))))) 1020 ("C-c n a" . (lambda () (interactive) (find-file "~/kb/agenda.org")))))
1014 1021
1022;; Super Agenda
1023(use-package org-super-agenda
1024 :straight t
1025 :config
1026 (org-super-agenda-mode))
1027
1028;; Custom Agenda views
1029(use-package org-agenda
1030 :config
1031 (setq org-agenda-prefix-format '((agenda . " %-11s %-13:t %-12:c ")
1032 (todo . " %-11s %-13:t %-12:c "))
1033 org-agenda-custom-commands
1034 '(("o" "Agenda Overview"
1035 ((agenda "" ((org-agenda-span 'day)
1036 (org-agenda-overriding-header "")
1037 (org-super-agenda-groups
1038 '((:name "TODAY"
1039 :discard (:and (:scheduled future :habit t))
1040 :discard (:and (:deadline future :habit t))
1041 :time-grid t
1042 :date today
1043 :scheduled t
1044 :deadline t)
1045 (:discard (:anything t))))))
1046 (alltodo "" ((org-agenda-overriding-header "")
1047 (org-super-agenda-groups
1048 '((:discard (:habit))
1049 (:name "IN-PROGRESS"
1050 :todo ("IN-PROGRESS" "REVIEW"))
1051 (:name "OVERDUE"
1052 :deadline past
1053 :scheduled past)
1054 (:name "NEXT ACTIONS"
1055 :todo "NEXT")
1056 (:discard (:anything t)))))))))))
1057
1015 1058
1016;; Update agenda periodically every `mm/refresh-agenda-time-seconds' seconds. 1059;; Update agenda periodically every `mm/refresh-agenda-time-seconds' seconds.
1017;; This was taken from https://emacs.stackexchange.com/a/68767/38877 1060;; This was taken from https://emacs.stackexchange.com/a/68767/38877