From 1c9a39bf26597d2e0f43c1eb4cf581f91c1ac0fa Mon Sep 17 00:00:00 2001 From: bdarcus Date: Thu, 23 Apr 2020 14:25:05 -0400 Subject: [PATCH 1/2] switching org-roam-completion to use 'default The conditional setup for completion system was causing fuzzy completion to fail. This fixes that. --- modules/lang/org/contrib/roam.el | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/lang/org/contrib/roam.el b/modules/lang/org/contrib/roam.el index a5dcc3e83..a28f3ff9a 100644 --- a/modules/lang/org/contrib/roam.el +++ b/modules/lang/org/contrib/roam.el @@ -36,11 +36,7 @@ (setq org-roam-directory (expand-file-name (or org-roam-directory "") org-directory) org-roam-verbose nil ; https://youtu.be/fn4jIlFwuLU - org-roam-completion-system - (cond ((featurep! :completion helm) 'helm) - ((featurep! :completion ivy) 'ivy) - ((featurep! :completion ido) 'ido) - ('default))) + org-roam-completion-system 'default) ;; HACK Hide the mode line in the org-roam buffer, since it serves no purpose. ;; This makes it easier to distinguish among other org buffers. From 7d38f503e2f353009ff76e002d5d39fe0ed5b218 Mon Sep 17 00:00:00 2001 From: bdarcus Date: Thu, 23 Apr 2020 14:46:13 -0400 Subject: [PATCH 2/2] updating per @hlissner suggestion --- modules/lang/org/contrib/roam.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/lang/org/contrib/roam.el b/modules/lang/org/contrib/roam.el index a28f3ff9a..ef1fb7761 100644 --- a/modules/lang/org/contrib/roam.el +++ b/modules/lang/org/contrib/roam.el @@ -36,7 +36,14 @@ (setq org-roam-directory (expand-file-name (or org-roam-directory "") org-directory) org-roam-verbose nil ; https://youtu.be/fn4jIlFwuLU - org-roam-completion-system 'default) + org-roam-completion-system + (cond ((featurep! :completion helm) 'helm) + ((featurep! :completion ivy) 'ivy) + ((featurep! :completion ido) 'ido) + ('default)) + org-roam-completion-fuzzy-match + (or (featurep! :completion helm +fuzzy) + (featurep! :completion ivy +fuzzy))) ;; HACK Hide the mode line in the org-roam buffer, since it serves no purpose. ;; This makes it easier to distinguish among other org buffers.