Archived
1
0
Fork 0
This repository has been archived on 2024-10-19. You can view files and clone it, but cannot push or open issues or pull requests.
emacs/org/notdeft/notdeft-org9.el
2022-08-25 09:58:41 -04:00

33 lines
820 B
EmacsLisp

;;; notdeft-org9.el --- Org link support for NotDeft notes -*- lexical-binding: t; -*-
;; Copyright (C) 2017 by the author.
;; All rights reserved.
;; Author: Tero Hasu <tero@hasu.is>
;; See "notdeft.el" for licensing information.
;;; Commentary:
;; Support for "deft:" and "notdeft:" links for `org-mode' version 9.
;; The `org-link-set-parameters' API is available since Org version 9,
;; in the `org' feature.
;;
;; Suggested use:
;; (eval-after-load 'org (lambda () (require 'notdeft-org9)))
;;; Code:
(require 'org)
(org-link-set-parameters
"deft"
:follow #'notdeft-org-open-deft-link
:complete #'notdeft-org-complete-deft-link)
(org-link-set-parameters
"notdeft"
:follow #'notdeft-org-open-notdeft-link
:store #'notdeft-org-store-notdeft-link)
(provide 'notdeft-org9)
;;; notdeft-org9.el ends here