summaryrefslogtreecommitdiffhomepage
path: root/init.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-03-05 19:23:30 +0000
committerjao <jao@gnu.org>2022-03-05 19:23:30 +0000
commit12f24e3d75ed9a09f6edb09d8331192110d504fd (patch)
tree89e18ce37f92f7f0883a9451c0afb09ce9ee469e /init.org
parent4e90ff0711ba5ea10132bda9da8da44bce21012b (diff)
downloadelibs-12f24e3d75ed9a09f6edb09d8331192110d504fd.tar.gz
elibs-12f24e3d75ed9a09f6edb09d8331192110d504fd.tar.bz2
link-hint externally
Diffstat (limited to 'init.org')
-rw-r--r--init.org5
1 files changed, 4 insertions, 1 deletions
diff --git a/init.org b/init.org
index 259df56..5df0db5 100644
--- a/init.org
+++ b/init.org
@@ -1584,6 +1584,9 @@
(jao-mpc-add-url url)
(if p (jao-mpc-play) (message "%s added to mpc queue" url))))
+ (defun jao-browse-url-browse (&rest args)
+ (apply jao-browse-url-function args))
+
(setq browse-url-handlers
`(("^\\(gemini\\|gopher\\)://.*" . jao-elpher--browse)
(,jao--doc-exts . jao--browse-doc)
@@ -1595,7 +1598,7 @@
(,jao-browse--sound-rx . jao-browse-add-url-to-mpc)
(,(jao-wget--regexp) . jao-download)
(jao-video--url-p . jao-maybe-view-video)
- ("." . ,jao-browse-url-function)))
+ ("." . jao-browse-url-browse)))
(when (< emacs-major-version 28)
(setf (alist-get 'jao-video--url-p browse-url-handlers nil t) nil)