aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-02-22 00:22:06 +0800
committerGuangxiong Lin <[email protected]>2022-02-22 00:22:06 +0800
commit65bed3d83a0086c6871e9ce007622f8d37936424 (patch)
tree1aa6d3a13a442dfbceed93019268f30788397cb6
parentc53c9bba77c4c81d25b3e297e6df9304ff5fe3d7 (diff)
downloaddotfiles-65bed3d83a0086c6871e9ce007622f8d37936424.tar.gz
dotfiles-65bed3d83a0086c6871e9ce007622f8d37936424.tar.bz2
dotfiles-65bed3d83a0086c6871e9ce007622f8d37936424.zip
Add org roam package
-rw-r--r--.emacs.d/.gitignore2
-rw-r--r--.emacs.d/lisp/init-org.el10
2 files changed, 12 insertions, 0 deletions
diff --git a/.emacs.d/.gitignore b/.emacs.d/.gitignore
index 8c1df1d..727d0b6 100644
--- a/.emacs.d/.gitignore
+++ b/.emacs.d/.gitignore
@@ -8,4 +8,6 @@ bookmarks
network-security.data
org-clock-save.el
transient
+org-roam.db
+.org-id-locations
pyim
diff --git a/.emacs.d/lisp/init-org.el b/.emacs.d/lisp/init-org.el
index 135ccd3..3a314d9 100644
--- a/.emacs.d/lisp/init-org.el
+++ b/.emacs.d/lisp/init-org.el
@@ -135,4 +135,14 @@
(org-save-all-org-buffers)
(org-agenda-quit))))
+(use-package org-roam
+ :ensure t
+ :after (org evil)
+ :commands (org-roam-node-find)
+ :hook (org-mode . (lambda () (org-roam-db-autosync-mode)))
+ :init
+ (setq org-roam-directory (file-truename "~/Sync"))
+ (evil-define-key 'normal 'global
+ (kbd "<leader>fn") 'org-roam-node-find))
+
(provide 'init-org)