dotfiles

andersuno dotfiles
git clone git://git.andersuno.nu/dotfiles.git
Log | Files | Refs | README

commit 1a46d6fa8e9bbfce349acb51749d33458024358a
parent 887b3028855c879ea6260da4048f0a2eb3ad7aea
Author: Anders Hedman <anders.hedman01@gmail.com>
Date:   Sun, 11 Dec 2022 01:10:51 +0100

doom: Initial org agenda setup

Diffstat:
M.doom.d/config.el | 41+++++++++++++++++++++++++++++++++++++++--
1 file changed, 39 insertions(+), 2 deletions(-)

diff --git a/.doom.d/config.el b/.doom.d/config.el @@ -95,8 +95,45 @@ (setq markdown-nested-imenu-heading-index t) (after! org - (setq org-directory "~/NC/org/") - (setq org-agenda-files "~/NC/org/agenda.org")) + ;; Set above, before org load (setq org-directory "~/NC/org/") + (setq org-agenda-files "~/NC/org/agenda.org") + (setq org-log-done 'time) + (setq org-log-into-drawer t) + (setq org-refile-targets + '(("archive.org" :maxlevel . 1) + ("todo.org" :maxlevel . 1) + )) +;; (setq org-todo-keywords +;; '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!)") +;; (sequence "BACKLOG(b)" "PLAN(p)" "READY(r)" "ACTIVE(a)" "REVIEW(v)" "WAIT(w@/!)" "HOLD(h)" "|" "COMPLETED(c)" "CANC(k@)"))) + (setq org-todo-keywords + '((sequence "TODO(t)" "|" "DONE(d)") + (sequence "MEETING(m)" "|" "CANC(k)"))) + (setq org-capture-templates + '(("t" "todo" entry + (file "inbox.org") + "* TODO %? \n%i\n%a" :prepend t) + ("n" "notes" entry + (file+headline +org-capture-notes-file "Inbox") + "* %u %?\n%i\n%a" :prepend t) + ("j" "journal" entry + (file+olp+datetree +org-capture-journal-file) + "* %U %?\n%i\n%a" :prepend t))) + (setq org-agenda-custom-commands + '(("A" "Agenda and all TODOs" + ((agenda "") + (alltodo ""))) + ("u" "Unscheduled Todos" + ((alltodo "" + ((org-agenda-overriding-header "Unscheduled") + (org-agenda-skip-function '(or (org-agenda-skip-entry-if + 'scheduled) + (org-agenda-skip-entry-if + 'regexp ":ongoing:"))) + ))))) + ) + (advice-add 'org-refile :after 'org-save-all-org-buffers) + ) (after! treemacs (treemacs-indent-guide-mode 1)