From 0ba0c7cd35c8c011ac1329fe41b2d9722089409a Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Fri, 3 Jan 2025 09:07:51 +1100 Subject: [emacs] Add org-protocol-browse-url bookmarklet in firefox: javascript:location.href='org-protocol://browse-url?url='+encodeURIComponent(window.location.href); --- emacs/.emacs.d/init/ycp-org.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'emacs/.emacs.d/init/ycp-org.el') diff --git a/emacs/.emacs.d/init/ycp-org.el b/emacs/.emacs.d/init/ycp-org.el index a4b9e87..c69c762 100644 --- a/emacs/.emacs.d/init/ycp-org.el +++ b/emacs/.emacs.d/init/ycp-org.el @@ -441,7 +441,11 @@ (add-to-list 'org-protocol-protocol-alist '("grok" :protocol "grok" - :function my-org-protocol-grok))) + :function my-org-protocol-grok)) + (add-to-list 'org-protocol-protocol-alist + '("browse-url" + :protocol "browse-url" + :function my-org-protocol-browse-url))) ;; org man links (my-package ol-man -- cgit v1.2.3