Set :follow and :help-echo org link parameters

This commit is contained in:
TEC 2022-07-13 23:27:58 +08:00
parent 558eabc050
commit d03eec48cf
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 12 additions and 4 deletions

View File

@ -1322,16 +1322,24 @@ the :consume parameter extracted from KEYWORD."
(org-link-set-parameters "gls"
:export #'org-glossary--link-export-gls
:face 'org-glossary-term)
:face 'org-glossary-term
:follow #'org-glossary-goto-term-definition
:help-echo #'org-glossary--help-echo-from-textprop)
(org-link-set-parameters "glspl"
:export #'org-glossary--link-export-glspl
:face 'org-glossary-term)
:face 'org-glossary-term
:follow #'org-glossary-goto-term-definition
:help-echo #'org-glossary--help-echo-from-textprop)
(org-link-set-parameters "Gls"
:export #'org-glossary--link-export-Gls
:face 'org-glossary-term)
:face 'org-glossary-term
:follow #'org-glossary-goto-term-definition
:help-echo #'org-glossary--help-echo-from-textprop)
(org-link-set-parameters "Glspl"
:export #'org-glossary--link-export-Glspl
:face 'org-glossary-term)
:face 'org-glossary-term
:follow #'org-glossary-goto-term-definition
:help-echo #'org-glossary--help-echo-from-textprop)
(defun org-glossary--link-export-gls (index-term description backend info)
"Export a gls link to term index-term with BACKEND."