aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/init/ycp-markup.el
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2025-01-13 08:45:17 +1100
committerYuchen Pei <id@ypei.org>2025-01-13 08:45:17 +1100
commit54e253bd209960992417bc0005b7b0d6017fdcbb (patch)
tree84579d578a82ef69e91d3b11d4260f0fc9062e53 /emacs/.emacs.d/init/ycp-markup.el
parentf5a111de58af93660603c639043a514a4aeaa968 (diff)
[emacs] Move browse-url-handler element to each component
Diffstat (limited to 'emacs/.emacs.d/init/ycp-markup.el')
-rw-r--r--emacs/.emacs.d/init/ycp-markup.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init/ycp-markup.el b/emacs/.emacs.d/init/ycp-markup.el
index f3d92d0..5f21da7 100644
--- a/emacs/.emacs.d/init/ycp-markup.el
+++ b/emacs/.emacs.d/init/ycp-markup.el
@@ -72,7 +72,11 @@
(my-keybind wiki-mode-map
"C-'" #'my-wiki-grok-wikipedia)
(my-setq-from-local wiki-sites)
- (wiki-define-site-commands))
+ (wiki-define-site-commands)
+ (add-to-list 'browse-url-handlers
+ `(wiki-engine-entry-url-p
+ . ,(lambda (url &rest _) (wiki-open-url url))))
+ )
(my-package ledger-mode
(:install t)