From cfb9fd37f61f421a6027fbc8bd2fcd5cf68b4cfd Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Thu, 7 Jul 2022 22:52:22 +0800 Subject: Update emacs config --- .emacs.d/lisp/init-org.el | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to '.emacs.d/lisp/init-org.el') diff --git a/.emacs.d/lisp/init-org.el b/.emacs.d/lisp/init-org.el index 68ab560..12ca4f2 100644 --- a/.emacs.d/lisp/init-org.el +++ b/.emacs.d/lisp/init-org.el @@ -69,6 +69,8 @@ (setq org-tags-column (- fill-column)) (setq org-agenda-tags-column org-tags-column) (setq org-startup-folded 'showall) +(setq org-stuck-projects + '("/+TODO={TODO|WAITING}" ("NEXT") nil "SCHEDULED:")) (with-eval-after-load 'org-indent (gx/diminish 'org-indent-mode)) @@ -104,9 +106,9 @@ ;; capture (setq org-capture-templates '(("t" "TODO" entry (file+headline org-default-notes-file "Tasks") - "* TODO %?\nCaptured on %U\n %i\n %a") - ("j" "Journal" entry (file+datetree org-default-notes-file) - "* %?\nCaptured on %U\n %i\n %a"))) + "* TODO %?\nCaptured on %U") + ("j" "Journal" entry (file+datetree org-default-notes-file) + "* %?\nCaptured on %U"))) ;; clock (setq org-clock-persist 'history) @@ -131,6 +133,9 @@ (autoload #'org-roam-node-find "org-roam-node" nil t) (autoload #'org-roam-dailies-goto-today "org-roam-dailies" nil t) (add-hook 'org-mode-hook #'org-roam-db-autosync-mode)) + +(with-eval-after-load 'org + (define-key org-mode-map (kbd "C-c n i") #'org-roam-node-insert)) (with-eval-after-load 'evil (evil-define-key 'normal 'global (kbd "fn") 'org-roam-node-find -- cgit v1.2.3