summaryrefslogtreecommitdiff
path: root/contrib/lisp/org-man.el
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/lisp/org-man.el')
-rw-r--r--contrib/lisp/org-man.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/lisp/org-man.el b/contrib/lisp/org-man.el
index a9db83d..1ccd942 100644
--- a/contrib/lisp/org-man.el
+++ b/contrib/lisp/org-man.el
@@ -25,8 +25,10 @@
(require 'org)
-(org-add-link-type "man" 'org-man-open 'org-man-export)
-(add-hook 'org-store-link-functions 'org-man-store-link)
+(org-link-set-parameters "man"
+ :follow #'org-man-open
+ :export #'org-man-export
+ :store #'org-man-store-link)
(defcustom org-man-command 'man
"The Emacs command to be used to display a man page."