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