aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-org.el
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-02-22 22:40:40 +0800
committerGuangxiong Lin <[email protected]>2022-02-22 22:40:40 +0800
commit027320068dcefb30f635c3bf1b8ec94c4788118c (patch)
treef615411b73155c6bca7f9fb6b64fd082bfefc2a2 /.emacs.d/lisp/init-org.el
parentfc92874209a7c933da422f2151da646ef188368d (diff)
downloaddotfiles-027320068dcefb30f635c3bf1b8ec94c4788118c.tar.gz
dotfiles-027320068dcefb30f635c3bf1b8ec94c4788118c.tar.bz2
dotfiles-027320068dcefb30f635c3bf1b8ec94c4788118c.zip
Update org-roam-dailies keybinds
Diffstat (limited to '.emacs.d/lisp/init-org.el')
-rw-r--r--.emacs.d/lisp/init-org.el27
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