home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit 2c685ff2c5b3a6c4c04a9e15ea090c00e83bff10
parent b40cd08e3f5c3a31fd29cc341797ddaff7c9acb7
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri, 19 Jan 2024 19:32:32 +0100

tools/emacs: org-mode updates

- add more registers
- add more templates

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-org.el | 6++++--
Mtools/emacs/templates | 3+++
2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/tools/emacs/config/config-org.el b/tools/emacs/config/config-org.el @@ -31,8 +31,8 @@ "Article resource files directory.") (defconst org-resources-books-dir (expand-file-name "books" org-resources-dir) "Book resource files directory.") -(defconst org-resources-people-dir (expand-file-name "people" org-resources-dir) - "People resource files directory.") +(defconst org-people-dir (expand-file-name "people" org-directory) + "People files directory.") (defconst org-journal-dir (expand-file-name "journal" org-directory) "Journal files directory") @@ -47,6 +47,8 @@ (set-register ?p `(file . ,org-projects-dir)) (set-register ?a `(file . ,org-areas-dir)) (set-register ?r `(file . ,org-resources-dir)) +(set-register ?P `(file . ,org-people-dir)) +(set-register ?j `(file . ,org-journal-dir)) (defun vde/org-mode-hook () "Org-mode hook" diff --git a/tools/emacs/templates b/tools/emacs/templates @@ -108,6 +108,9 @@ org-mode (call & "#+call: " (p "name" name) "(" (s var) "=\"" (s value) "\")") (/ "[/]" (org-update-statistics-cookies nil)) (tsm p " :: " (with-temp-buffer (org-insert-time-stamp (current-time) t t))) +(pdeadline "#+PROJECT_DEADLINE: " (org-read-date)) +(ppath "#+PROJECT_PATHS: (" p " . " q ")") +(backlinks "#+BEGIN: denote-backlinks :sort-by-component nil :reverse-sort nil :id-only nil" n> "#+END:") ;; Local Variables: ;; mode: lisp-data