aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-org.el
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-07-07 22:52:22 +0800
committerGuangxiong Lin <[email protected]>2022-07-07 22:52:22 +0800
commitcfb9fd37f61f421a6027fbc8bd2fcd5cf68b4cfd (patch)
tree50684c4cfe2a3dfa666098c1d06fc52b67037b7e /.emacs.d/lisp/init-org.el
parentf3640ba63d39d15f220bfc92e28bb3bec1955d7b (diff)
downloaddotfiles-cfb9fd37f61f421a6027fbc8bd2fcd5cf68b4cfd.tar.gz
dotfiles-cfb9fd37f61f421a6027fbc8bd2fcd5cf68b4cfd.tar.bz2
dotfiles-cfb9fd37f61f421a6027fbc8bd2fcd5cf68b4cfd.zip
Update emacs config
Diffstat (limited to '.emacs.d/lisp/init-org.el')
-rw-r--r--.emacs.d/lisp/init-org.el11
1 files changed, 8 insertions, 3 deletions
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 "<leader>fn") 'org-roam-node-find