org/org: add wiki-style org:* links, completion & custom face
This commit is contained in:
parent
ab326a9795
commit
4c7a3762cf
1 changed files with 9 additions and 5 deletions
|
@ -138,11 +138,15 @@
|
||||||
'default)
|
'default)
|
||||||
:background nil t)))
|
:background nil t)))
|
||||||
|
|
||||||
;; Use ivy/helm if either is available
|
;; Custom links
|
||||||
(when (or (featurep! :completion ivy)
|
(org-link-set-parameters
|
||||||
(featurep! :completion helm))
|
"org"
|
||||||
(setq-default org-completion-use-ido nil
|
:complete (lambda () (+org-link-read-file "org" +org-dir))
|
||||||
org-outline-path-complete-in-steps nil)))
|
: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 ()
|
(defun +org-init-keybinds ()
|
||||||
"Sets up org-mode and evil keybindings. Tries to fix the idiosyncrasies
|
"Sets up org-mode and evil keybindings. Tries to fix the idiosyncrasies
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue