mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-08-11 02:21:14 +10:00
Adding Org-capture functionality for proper note taking.
This commit is contained in:
+16
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user