summaryrefslogtreecommitdiffstats
path: root/files/.emacs.d
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2024-10-22 17:10:51 +0200
committerjdlugosz963 <jdlugosz963@gmail.com>2024-10-22 17:10:51 +0200
commita1e2abaadadf7a7b2fc69d203faf44eed37e537d (patch)
treed507972112e0cd5ced5a00ef2ab6693cb52f74c8 /files/.emacs.d
parentdae7ceec9603208cab6412534aa84b918071606c (diff)
downloaddotfiles-a1e2abaadadf7a7b2fc69d203faf44eed37e537d.tar.gz
dotfiles-a1e2abaadadf7a7b2fc69d203faf44eed37e537d.zip
Add org agenda settings for collage.
Diffstat (limited to 'files/.emacs.d')
-rwxr-xr-xfiles/.emacs.d/jd/jd-org.el30
1 files changed, 14 insertions, 16 deletions
diff --git a/files/.emacs.d/jd/jd-org.el b/files/.emacs.d/jd/jd-org.el
index 400d00c..554533d 100755
--- a/files/.emacs.d/jd/jd-org.el
+++ b/files/.emacs.d/jd/jd-org.el
@@ -66,7 +66,7 @@
66 org-refile-targets '((org-agenda-files :maxlevel . 1)) 66 org-refile-targets '((org-agenda-files :maxlevel . 1))
67 org-outline-path-complete-in-steps nil 67 org-outline-path-complete-in-steps nil
68 org-refile-use-outline-path t 68 org-refile-use-outline-path t
69 org-agenda-files '("Personal.org" "Work.org" "Inbox.org") 69 org-agenda-files '("Personal.org" "Work.org" "Inbox.org" "Collage.org")
70 org-ellipsis " ▾" 70 org-ellipsis " ▾"
71 org-agenda-start-with-log-mode t 71 org-agenda-start-with-log-mode t
72 org-log-done 'time 72 org-log-done 'time
@@ -90,6 +90,11 @@
90 (tags-todo "+PRIORITY=\"A\"" 90 (tags-todo "+PRIORITY=\"A\""
91 ((org-agenda-overriding-header "High Priority Tasks"))))) 91 ((org-agenda-overriding-header "High Priority Tasks")))))
92 92
93 ("c" "Collage Agenda"
94 ((agenda "" ((org-agenda-span 'week)
95 (org-deadline-warning-days 7))))
96 ((org-agenda-filter-preset '("+collage"))))
97
93 ("w" "Weekly Review" 98 ("w" "Weekly Review"
94 ((agenda "" 99 ((agenda ""
95 ((org-agenda-overriding-header "Completed Tasks") 100 ((org-agenda-overriding-header "Completed Tasks")
@@ -103,7 +108,9 @@
103 108
104 org-capture-templates 109 org-capture-templates
105 `(("i" "Capture to Inbox" entry (file+olp ,(jd/org-mode-file "Inbox") "Inbox") 110 `(("i" "Capture to Inbox" entry (file+olp ,(jd/org-mode-file "Inbox") "Inbox")
106 "* TODO %?\n %t\n" :empty-lines 1)) 111 "* TODO %?\n %t\n" :empty-lines 1)
112 ("c" "Capture to Collage" entry (file+olp ,(jd/org-mode-file "Collage") "Collage")
113 "* TODO %? :collage:%^g \n %t\n" :empty-lines 1))
107 114
108 org-latex-pdf-process 115 org-latex-pdf-process
109 '("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f" 116 '("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
@@ -112,12 +119,6 @@
112 (require 'org-tempo) 119 (require 'org-tempo)
113 120
114 (defun jd/org-font-setup () 121 (defun jd/org-font-setup ()
115 ;; Replace list hyphen with dot
116 ;; (font-lock-add-keywords 'org-mode
117 ;; '(("^ *\\([.]\\) "
118 ;; (0 (prog1 () (compose-region (match-beginning 1) (match-end 1) "•-"))))))
119
120 ;; Set faces for heading levels
121 (dolist (face '((org-level-1 . 1.3) 122 (dolist (face '((org-level-1 . 1.3)
122 (org-level-2 . 1.2) 123 (org-level-2 . 1.2)
123 (org-level-3 . 1.1) 124 (org-level-3 . 1.1)
@@ -205,14 +206,11 @@
205 (setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags:10}" 'face 'org-tag))) 206 (setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags:10}" 'face 'org-tag)))
206 (setq org-roam-capture-templates 207 (setq org-roam-capture-templates
207 '(("d" "default" plain "%?" 208 '(("d" "default" plain "%?"
208 :target (file+head 209 :target (file+head+olp
209 "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n\n* ${title}\n %?") ;; TODO: point cursor to the end of the file, it should be: `%?` 210 "%<%Y%m%d%H%M%S>-${slug}.org"
210 :unnarrowed t) 211 "#+title: ${title}\n\n"
211 ;; ("n" "insert node" plain (file "~/Documents/roam/study/templates/research.org") 212 ("${title}"))
212 ;; :target (file+head "study/%<%Y%m%d%H%M%S>-${slug}.org" 213 :unnarrowed t)))
213 ;; "#+title: ${title}\n")
214 ;; :unnarrowed t)
215 ))
216 214
217 (org-roam-db-autosync-mode)) 215 (org-roam-db-autosync-mode))
218 216