summaryrefslogtreecommitdiffhomepage
path: root/init.org
diff options
context:
space:
mode:
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)