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

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)

View File

@@ -35,7 +35,9 @@
- [[#modeline][MODELINE]]
- [[#neotree][NEOTREE]]
- [[#org-mode][ORG MODE]]
- [[#general-org-settings][General Org Settings]]
- [[#agenda][Agenda]]
- [[#capture][Capture]]
- [[#bullets][Bullets]]
- [[#diminish-org-indent-mode][Diminish Org Indent Mode]]
- [[#org-level-headers][Org Level Headers]]
@@ -560,6 +562,7 @@ mouse wheel for zooming in/out.
(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")
@@ -780,9 +783,32 @@ Neotree is a file tree viewer. When you open neotree, it jumps to the current f
#+end_src
* ORG MODE
** General Org Settings
#+begin_src emacs-lisp
(setq org-directory "~/nc/Org/")
#+end_src
** Agenda
#+begin_src emacs-lisp
(setq org-agenda-files '("~/.config/emacs/agenda.org"))
(setq org-agenda-files '(concat org-directory "/agenda.org"))
#+end_src
** TODO Capture
#+begin_src emacs-lisp
;; 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")))
#+end_src
** Bullets