diff options
-rw-r--r-- | .emacs.d/lisp/init-org.el | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/.emacs.d/lisp/init-org.el b/.emacs.d/lisp/init-org.el index 6d684e7..f708c8b 100644 --- a/.emacs.d/lisp/init-org.el +++ b/.emacs.d/lisp/init-org.el @@ -9,7 +9,7 @@ (evil-define-key 'normal 'global (kbd "<leader>a") 'org-agenda (kbd "<leader>l") 'org-store-link - (kbd "<leader>c") 'org-capture) + (kbd "<leader>co") 'org-capture) :config (require 'org-tempo) (setq org-default-notes-file "~/journals/inbox.org") @@ -139,14 +139,33 @@ (use-package org-roam :ensure t - :commands (org-roam-node-find) + :commands (org-roam-node-find org-roam-dailies-goto-today) :hook (org-mode . (lambda () (org-roam-db-autosync-mode))) :init (setq org-roam-directory (file-truename "~/words")) (evil-define-key 'normal 'global - (kbd "<leader>fn") 'org-roam-node-find) + (kbd "<leader>fn") 'org-roam-node-find + (kbd "<leader>cn") 'org-roam-dailies-goto-today) :config - (setq org-roam-db-gc-threshold most-positive-fixnum)) + (setq org-roam-db-gc-threshold most-positive-fixnum) + (setq org-roam-dailies-directory "journals/") + (setq org-roam-dailies-capture-templates + '(("d" "daily" entry + "* %?" + :target (file+head "%<%Y/%Y-%m-%d>.org" + "#+title: %<%a %d %b %Y>\n")) + ("w" "weekly" entry + "* %?" + :target (file+head "%<%Y/week%V>.org" + "#+title: Week %<%V %Y>\n")) + ("m" "monthly" entry + "* %?" + :target (file+head "%<%Y/%Y-%m>.org" + "#+title: %<%B %Y>\n")) + ("y" "yearly" entry + "* %?" + :target (file+head "%<%Y/%Y>.org" + "#+title: %<%Y>\n"))))) (use-package org-roam-ui :ensure t |