feat(emacs): wiktionary org-mode link

This commit is contained in:
2025-10-24 11:49:43 -06:00
parent 9b1777363f
commit 86be7848a0

View File

@@ -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