Add shortcut to org-default-notes-file

This commit is contained in:
Evie Litherland-Smith 2024-12-10 07:28:39 +00:00
parent 662d978241
commit f84d4851ac

View file

@ -694,7 +694,7 @@
:bind (("C-c n n" . org-capture))
:custom (org-capture-templates
'(("n" "Note" entry
(file+olp "notes.org" "Inbox"))
(file+olp org-default-notes-file "Inbox"))
("t" "Task" entry
(file+olp "tasks.org" "Inbox")
"* TODO %?\nDEADLINE: %t\n %i\n %a")))
@ -1328,6 +1328,13 @@
(find-file org-directory))
(keymap-global-set "C-c w o" #'my/open-org-directory)
(defun my/open-org-default-notes-file ()
"Open default `org-mode' notes file."
(interactive)
(require 'org)
(find-file org-default-notes-file))
(keymap-global-set "C-c w n" #'my/open-org-default-notes-file)
(defun my/open-global-bibliography ()
"Open `org-cite-global-bibliography'."
(interactive)