From 027320068dcefb30f635c3bf1b8ec94c4788118c Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Tue, 22 Feb 2022 22:40:40 +0800 Subject: Update org-roam-dailies keybinds --- .emacs.d/lisp/init-org.el | 27 +++++++++++++++++++++++---- 1 file 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 "a") 'org-agenda (kbd "l") 'org-store-link - (kbd "c") 'org-capture) + (kbd "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 "fn") 'org-roam-node-find) + (kbd "fn") 'org-roam-node-find + (kbd "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 -- cgit v1.2.3