Adding Org-capture functionality for proper note taking.

This commit is contained in:
Derek Taylor
2026-03-14 08:10:31 -05:00
parent 1f6cbd031d
commit 139f79b5ec
2 changed files with 43 additions and 2 deletions
+16 -1
View File
@@ -398,6 +398,7 @@
(dt/leader-keys
"m" '(:ignore t :wk "Org")
"m a" '(org-agenda :wk "Org agenda")
"m c" '(org-capture :wk "Org capture")
"m e" '(org-export-dispatch :wk "Org export dispatch")
"m i" '(org-toggle-item :wk "Org toggle item")
"m t" '(org-todo :wk "Org todo")
@@ -566,7 +567,21 @@
(make-local-variable 'auto-hscroll-mode)
(setq auto-hscroll-mode nil)))))
(setq org-agenda-files '("~/.config/emacs/agenda.org"))
(setq org-directory "~/nc/Org/")
(setq org-agenda-files '(concat org-directory "/agenda.org"))
;; Defines the global fallback destination for all your Org notes.
(setq org-default-notes-file (concat org-directory "/notes.org"))
;; (Optional) Create custom templates
(setq org-capture-templates
`(("t" "Todo" entry (file+headline ,(concat org-directory "/todo.org") "Tasks")
"* TODO %?\n %u\n %a")
("j" "Journal" entry (file+datetree ,(concat org-directory "/journal.org"))
"* %?\nEntered on %U")
("n" "Note" entry (file ,org-default-notes-file)
"* %?\n %u")))
(add-hook 'org-mode-hook 'org-indent-mode)
(use-package org-bullets)