Add +roam submodule to lang/org

Closes #2764, #2759
This commit is contained in:
Henrik Lissner 2020-03-29 18:48:23 -04:00
parent 07e57aa0b8
commit f28a304abd
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
6 changed files with 51 additions and 1 deletions

View file

@ -0,0 +1,36 @@
;;; lang/org/contrib/roam.el -*- lexical-binding: t; -*-
;;;###if (featurep! +roam)
(use-package! org-roam
:commands (org-roam
org-roam-insert
org-roam-find-file
org-roam-switch-to-buffer
org-roam-show-graph)
:init
(map! :after org
:map org-mode-map
:localleader
:prefix ("m" . "org-roam")
"m" #'org-roam
"i" #'org-roam-insert
"b" #'org-roam-switch-to-buffer
"f" #'org-roam-find-file
"g" #'org-roam-show-graph
"i" #'org-roam-insert)
:config
(setq org-roam-directory org-directory)
(org-roam-mode +1))
;; Since the org module lazy loads org-protocol (waits until an org URL is
;; detected), we can safely chain `org-roam-protocol' to it.
(use-package! org-roam-protocol
:after org-protocol)
(use-package company-org-roam
:when (featurep! :completion company)
:after org-roam
:config
(set-company-backend! 'org-mode '(company-org-roam company-yasnippet company-dabbrev)))