Set up org-roam

This commit is contained in:
Jeremy Dormitzer 2021-02-24 19:53:27 -05:00
parent f637fdb0cf
commit a395515fae

View File

@ -104,4 +104,25 @@
("Won't Fix" . "CANCELLED")))
(add-to-list 'org-agenda-files org-jira-working-dir))
;; org-roam provides backlinks between org documents
(use-package org-roam
:hook (org-mode . org-roam-mode)
:custom
(org-roam-directory "~/org")
:bind (:map org-roam-mode-map
(("C-c n l" . org-roam)
("C-c n f" . org-roam-find-file)
("C-c n g" . org-roam-graph))
:map org-mode-map
(("C-c n i" . org-roam-insert))
(("C-c n I" . org-roam-insert-immediate)))
:general
(leader-map "of" #'org-roam-find-file)
:config
(general-def org-roam-mode-map "C-c n" '(nil :which-key "org-roam"))
(general-def org-mode-map "C-c n" '(nil :which-key "org-roam"))
(general-def 'normal org-roam-backlinks-mode-map
"RET" #'org-open-at-point
"q" #'bury-buffer))
(provide 'init-org)