feat(emacs): wiktionary org-mode link
This commit is contained in:
@@ -601,5 +601,17 @@ In case of failure, fail gracefully."
|
||||
:config
|
||||
(ox-extras-activate '(latex-header-blocks ignore-headlines)))
|
||||
|
||||
(with-eval-after-load 'org
|
||||
(org-link-set-parameters "wiktionary"
|
||||
:follow #'syd-org-wiktionary-open
|
||||
;; :export #'syd-org-wiktionary-export
|
||||
)
|
||||
(defun syd-org-wiktionary-open (path _)
|
||||
(browse-url (format "https://en.wiktionary.org/wiki/%s"
|
||||
(browse-url-encode-url path))))
|
||||
;; (defun syd-org-wiktionary-export (link description format _)
|
||||
;; (org-export-transcoder))
|
||||
)
|
||||
|
||||
(provide 'syd-org)
|
||||
;;; syd-org.el ends here
|
||||
|
||||
Reference in New Issue
Block a user