From 4c7a3762cff54677185719b7241dbff175eb6c95 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 6 Nov 2017 00:07:37 +0100 Subject: [PATCH] org/org: add wiki-style org:* links, completion & custom face --- modules/org/org/config.el | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/modules/org/org/config.el b/modules/org/org/config.el index 69afdc5dd..065585075 100644 --- a/modules/org/org/config.el +++ b/modules/org/org/config.el @@ -138,11 +138,15 @@ 'default) :background nil t))) - ;; Use ivy/helm if either is available - (when (or (featurep! :completion ivy) - (featurep! :completion helm)) - (setq-default org-completion-use-ido nil - org-outline-path-complete-in-steps nil))) + ;; Custom links + (org-link-set-parameters + "org" + :complete (lambda () (+org-link-read-file "org" +org-dir)) + :follow (lambda (link) (find-file (expand-file-name link +org-dir))) + :face (lambda (link) + (if (file-exists-p (expand-file-name link +org-dir)) + 'org-link + 'error)))) (defun +org-init-keybinds () "Sets up org-mode and evil keybindings. Tries to fix the idiosyncrasies