From c6c05831074ad7a0ee63efa9293fe75bdca6d20d Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Fri, 10 Apr 2020 23:15:55 +0000 Subject: [PATCH] Configure org-roam completion backend --- modules/lang/org/contrib/roam.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/lang/org/contrib/roam.el b/modules/lang/org/contrib/roam.el index 961ea9b75..a1e978480 100644 --- a/modules/lang/org/contrib/roam.el +++ b/modules/lang/org/contrib/roam.el @@ -34,8 +34,12 @@ :desc "Yesterday" "y" #'org-roam-yesterday)) :config (unless org-roam-directory - (setq org-roam-directory org-directory))) - + (setq org-roam-directory org-directory)) + (setq org-roam-completion-system + (cond ((featurep! :completion helm) 'helm) + ((featurep! :completion ivy) 'ivy) + ((featurep! :completion ido) 'ido) + ('default)))) ;; Since the org module lazy loads org-protocol (waits until an org URL is ;; detected), we can safely chain `org-roam-protocol' to it.