From 1101d21c49f4121b2bded1d786e7f263a19fac09 Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Wed, 4 Jan 2023 20:54:36 -0600 Subject: [PATCH] Playing around a bit with org-agenda. --- .config/doom/config.el | 73 ++++++++++++++++--------------- .config/doom/config.org | 95 +++++++++++++++++++++-------------------- 2 files changed, 87 insertions(+), 81 deletions(-) diff --git a/.config/doom/config.el b/.config/doom/config.el index b1c12bf..4e4c159 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -391,6 +391,7 @@ List of keybindings (SPC h b b)") :desc "Org babel tangle" "m B" #'org-babel-tangle) (after! org (setq org-directory "~/nc/Org/" + org-agenda-files '("~/nc/Org/agenda.org") org-default-notes-file (expand-file-name "notes.org" org-directory) org-ellipsis " ▼ " org-superstar-headline-bullets-list '("◉" "●" "○" "◆" "●" "○" "◆") @@ -580,41 +581,6 @@ List of keybindings (SPC h b b)") ;; Load our desired dt/org-colors-* theme on startup (dt/org-colors-doom-one) -(after! org - (setq org-agenda-files '("~/nc/Org/agenda.org") - ;; org-fancy-priorities-list '("❗" "[B]" "▰") - ;; org-fancy-priorities-list '("⬆" "↕" "⬇") - org-fancy-priorities-list '("🟥" "🟧" "🟨") - org-priority-faces - '((?A :foreground "#ff6c6b" :weight bold) - (?B :foreground "#98be65" :weight bold) - (?C :foreground "#c678dd" :weight bold)) - org-agenda-block-separator 8411 - )) -(setq org-agenda-custom-commands - '(("v" "A better agenda view" - ((tags "PRIORITY=\"A\"" - ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) - (org-agenda-overriding-header "High-priority unfinished tasks:"))) - (tags "PRIORITY=\"B\"" - ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) - (org-agenda-overriding-header "Medium-priority unfinished tasks:"))) - (tags "PRIORITY=\"C\"" - ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) - (org-agenda-overriding-header "Low-priority unfinished tasks:"))) - (tags "customtag" - ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) - (org-agenda-overriding-header "Tasks with customtag tag:"))) - - (agenda "") - (alltodo ""))))) - -(use-package! org-auto-tangle - :defer t - :hook (org-mode . org-auto-tangle-mode) - :config - (setq org-auto-tangle-default t)) - (use-package ox-man) (use-package ox-gemini) @@ -742,6 +708,43 @@ List of keybindings (SPC h b b)") )) +(after! org + (setq org-agenda-files '("~/nc/Org/agenda.org"))) + +(setq + ;; org-fancy-priorities-list '("❗" "[B]" "▰") + ;; org-fancy-priorities-list '("⬆" "↕" "⬇") + org-fancy-priorities-list '("🟥" "🟧" "🟨") + org-priority-faces + '((?A :foreground "#ff6c6b" :weight bold) + (?B :foreground "#98be65" :weight bold) + (?C :foreground "#c678dd" :weight bold)) + org-agenda-block-separator 8411) + +(setq org-agenda-custom-commands + '(("v" "A better agenda view" + ((tags "PRIORITY=\"A\"" + ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) + (org-agenda-overriding-header "High-priority unfinished tasks:"))) + (tags "PRIORITY=\"B\"" + ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) + (org-agenda-overriding-header "Medium-priority unfinished tasks:"))) + (tags "PRIORITY=\"C\"" + ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) + (org-agenda-overriding-header "Low-priority unfinished tasks:"))) + (tags "customtag" + ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) + (org-agenda-overriding-header "Tasks with customtag tag:"))) + + (agenda "") + (alltodo ""))))) + +(use-package! org-auto-tangle + :defer t + :hook (org-mode . org-auto-tangle-mode) + :config + (setq org-auto-tangle-default t)) + (use-package! password-store) (map! :leader diff --git a/.config/doom/config.org b/.config/doom/config.org index 4211989..36173f9 100644 --- a/.config/doom/config.org +++ b/.config/doom/config.org @@ -45,11 +45,11 @@ - [[#open-specific-files][OPEN SPECIFIC FILES]] - [[#org-mode][ORG MODE]] - [[#org-fonts][Org fonts]] - - [[#org-agenda][Org-agenda]] - - [[#org-auto-tangle][Org-auto-tangle]] - [[#org-export][Org-export]] - [[#org-journal][Org-journal]] - [[#org-publish][Org-publish]] + - [[#org-agenda][Org-agenda]] + - [[#org-auto-tangle][Org-auto-tangle]] - [[#password-store][PASSWORD STORE]] - [[#perspective][PERSPECTIVE]] - [[#rainbow-mode][RAINBOW MODE]] @@ -800,6 +800,7 @@ I wrapped most of this block in (after! org). Without this, my settings might b :desc "Org babel tangle" "m B" #'org-babel-tangle) (after! org (setq org-directory "~/nc/Org/" + org-agenda-files '("~/nc/Org/agenda.org") org-default-notes-file (expand-file-name "notes.org" org-directory) org-ellipsis " ▼ " org-superstar-headline-bullets-list '("◉" "●" "○" "◆" "●" "○" "◆") @@ -996,50 +997,6 @@ I have created an interactive function for each color scheme (M-x dt/org-colors- #+end_src -** Org-agenda -#+begin_src emacs-lisp -(after! org - (setq org-agenda-files '("~/nc/Org/agenda.org") - ;; org-fancy-priorities-list '("❗" "[B]" "▰") - ;; org-fancy-priorities-list '("⬆" "↕" "⬇") - org-fancy-priorities-list '("🟥" "🟧" "🟨") - org-priority-faces - '((?A :foreground "#ff6c6b" :weight bold) - (?B :foreground "#98be65" :weight bold) - (?C :foreground "#c678dd" :weight bold)) - org-agenda-block-separator 8411 - )) -(setq org-agenda-custom-commands - '(("v" "A better agenda view" - ((tags "PRIORITY=\"A\"" - ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) - (org-agenda-overriding-header "High-priority unfinished tasks:"))) - (tags "PRIORITY=\"B\"" - ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) - (org-agenda-overriding-header "Medium-priority unfinished tasks:"))) - (tags "PRIORITY=\"C\"" - ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) - (org-agenda-overriding-header "Low-priority unfinished tasks:"))) - (tags "customtag" - ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) - (org-agenda-overriding-header "Tasks with customtag tag:"))) - - (agenda "") - (alltodo ""))))) -#+end_src - -** Org-auto-tangle -=org-auto-tangle= allows you to add the option =#+auto_tangle: t= in your Org file so that it automatically tangles when you save the document. - -#+begin_src emacs-lisp -(use-package! org-auto-tangle - :defer t - :hook (org-mode . org-auto-tangle-mode) - :config - (setq org-auto-tangle-default t)) - -#+end_src - ** Org-export We need ox-man for "Org eXporting" to manpage format and ox-gemini for exporting to gemtext (for the gemini protocol). @@ -1180,6 +1137,52 @@ We need ox-man for "Org eXporting" to manpage format and ox-gemini for exporting )) #+end_src +** Org-agenda +#+begin_src emacs-lisp +(after! org + (setq org-agenda-files '("~/nc/Org/agenda.org"))) + +(setq + ;; org-fancy-priorities-list '("❗" "[B]" "▰") + ;; org-fancy-priorities-list '("⬆" "↕" "⬇") + org-fancy-priorities-list '("🟥" "🟧" "🟨") + org-priority-faces + '((?A :foreground "#ff6c6b" :weight bold) + (?B :foreground "#98be65" :weight bold) + (?C :foreground "#c678dd" :weight bold)) + org-agenda-block-separator 8411) + +(setq org-agenda-custom-commands + '(("v" "A better agenda view" + ((tags "PRIORITY=\"A\"" + ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) + (org-agenda-overriding-header "High-priority unfinished tasks:"))) + (tags "PRIORITY=\"B\"" + ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) + (org-agenda-overriding-header "Medium-priority unfinished tasks:"))) + (tags "PRIORITY=\"C\"" + ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) + (org-agenda-overriding-header "Low-priority unfinished tasks:"))) + (tags "customtag" + ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) + (org-agenda-overriding-header "Tasks with customtag tag:"))) + + (agenda "") + (alltodo ""))))) +#+end_src + +** Org-auto-tangle +=org-auto-tangle= allows you to add the option =#+auto_tangle: t= in your Org file so that it automatically tangles when you save the document. + +#+begin_src emacs-lisp +(use-package! org-auto-tangle + :defer t + :hook (org-mode . org-auto-tangle-mode) + :config + (setq org-auto-tangle-default t)) + +#+end_src + * PASSWORD STORE Uses the standard Unix password store "pass".