diff --git a/system/home/emacs/init.el b/system/home/emacs/init.el index 0311fa97..863f6f9b 100644 --- a/system/home/emacs/init.el +++ b/system/home/emacs/init.el @@ -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)