forked from hasu/notdeft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotdeft-org8.el
36 lines (27 loc) · 966 Bytes
/
notdeft-org8.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
;;; notdeft-org8.el --- Org link support for NotDeft notes -*- lexical-binding: t; -*-
;; Copyright (C) 2019 by the author.
;; All rights reserved.
;; Author: Tero Hasu <[email protected]>
;; See "notdeft.el" for licensing information.
;;; Commentary:
;; Support for "deft:" and "notdeft:" links for `org-mode' version 8.
;; The `org-add-link-type' API is obsolete since Org version 9.
;;
;; Suggested use:
;; (eval-after-load 'org (lambda () (require 'notdeft-org8)))
;;; Code:
(require 'org)
(org-add-link-type
"deft"
#'notdeft-org-open-deft-link) ;; follow
(defun org-deft-complete-link ()
"Complete a \"deft:\" link.
Just call `notdeft-org-complete-deft-link'. Defined for
`org-link-try-special-completion', which expects a specific name
for the link-type-specific completion function."
(notdeft-org-complete-deft-link))
(org-add-link-type
"notdeft"
#'notdeft-org-open-notdeft-link) ;; follow
(provide 'notdeft-org8)
;;; notdeft-org8.el ends here