From 86be7848a0751bdadf5bc014516a7bafd5024636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madeleine=20Sydney=20=C5=9Alaga?= Date: Fri, 24 Oct 2025 11:49:43 -0600 Subject: [PATCH] feat(emacs): wiktionary org-mode link --- modules/home/users/crumb/emacs/modules/syd-org.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/home/users/crumb/emacs/modules/syd-org.el b/modules/home/users/crumb/emacs/modules/syd-org.el index b4a8d8c..9df4c96 100644 --- a/modules/home/users/crumb/emacs/modules/syd-org.el +++ b/modules/home/users/crumb/emacs/modules/syd-org.el @@ -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