Adding Org-capture functionality for proper note taking.

This commit is contained in:
Derek Taylor
2026-03-15 09:31:00 -05:00
parent 159ff80f0a
commit 34b8fbeb8b
2 changed files with 52 additions and 14 deletions

View File

@@ -418,7 +418,10 @@
"o d" '(dashboard-open :wk "Dashboard")
"o e" '(elfeed :wk "Elfeed RSS")
"o f" '(make-frame :wk "Open buffer in new frame")
"o F" '(select-frame-by-name :wk "Select frame by name"))
"o F" '(select-frame-by-name :wk "Select frame by name")
"o j" '((lambda () (interactive) (find-file (concat org-directory "journal.org"))) :wk "Journal")
"o n" '((lambda () (interactive) (find-file org-default-notes-file)) :wk "Notes")
"o t" '((lambda () (interactive) (find-file (concat org-directory "tasks.org"))) :wk "Tasks"))
;; projectile-command-map already has a ton of bindings
;; set for us, so no need to specify each individually.
@@ -576,12 +579,28 @@
;; (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")))
`(
;; Idea capture
("i" "idea" entry
(file ,org-default-notes-file)
"* %? :idea:\n%U\n")
;; Journal entry
("j" "journal" entry
(file+olp+datetree ,(concat org-directory "/journal.org"))
"* %U\n%?\n")
;; Note with link to source
("n" "note" entry
(file ,org-default-notes-file)
"* %? :note:\n%U\n%a\n")
;; Todo with context
("t" "task" entry
(file+headline ,(concat org-directory "/tasks.org"))
"* TODO %?\n%U\n%a\n")
))
(add-hook 'org-mode-hook 'org-indent-mode)
(use-package org-bullets)

View File

@@ -582,7 +582,10 @@ mouse wheel for zooming in/out.
"o d" '(dashboard-open :wk "Dashboard")
"o e" '(elfeed :wk "Elfeed RSS")
"o f" '(make-frame :wk "Open buffer in new frame")
"o F" '(select-frame-by-name :wk "Select frame by name"))
"o F" '(select-frame-by-name :wk "Select frame by name")
"o j" '((lambda () (interactive) (find-file (concat org-directory "journal.org"))) :wk "Journal")
"o n" '((lambda () (interactive) (find-file org-default-notes-file)) :wk "Notes")
"o t" '((lambda () (interactive) (find-file (concat org-directory "tasks.org"))) :wk "Tasks"))
;; projectile-command-map already has a ton of bindings
;; set for us, so no need to specify each individually.
@@ -803,12 +806,28 @@ Neotree is a file tree viewer. When you open neotree, it jumps to the current f
;; (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")))
`(
;; Idea capture
("i" "idea" entry
(file ,org-default-notes-file)
"* %? :idea:\n%U\n")
;; Journal entry
("j" "journal" entry
(file+olp+datetree ,(concat org-directory "/journal.org"))
"* %U\n%?\n")
;; Note with link to source
("n" "note" entry
(file ,org-default-notes-file)
"* %? :note:\n%U\n%a\n")
;; Todo with context
("t" "task" entry
(file+headline ,(concat org-directory "/tasks.org"))
"* TODO %?\n%U\n%a\n")
))
#+end_src