diff options
author | Robert Klein <roklein@roklein.de> | 2016-08-08 03:24:23 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-08-08 11:20:33 +0200 |
commit | f2bfa80c4c803a36b87b6fb540797a1f97718691 (patch) | |
tree | a9a7fd7ebdf647fb4527c92e48636b3c5df1f0da | |
parent | 040315cad89ab124459f28b8a0fcf52a3fe45df5 (diff) | |
download | org-mode-f2bfa80c4c803a36b87b6fb540797a1f97718691.tar.gz |
Update man link definition
* contrib/lisp/org-man.el ("man"):
Update to use org-link-set-parameters.
-rw-r--r-- | contrib/lisp/org-man.el | 6 |
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." |