From d2639403bd1862bea802dd2c4ba918006dafd960 Mon Sep 17 00:00:00 2001 From: jao Date: Tue, 7 Oct 2025 00:02:27 +0100 Subject: browse-url tweaks --- custom/jao-custom-browse.el | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'custom') diff --git a/custom/jao-custom-browse.el b/custom/jao-custom-browse.el index ba5ac79..1056b1c 100644 --- a/custom/jao-custom-browse.el +++ b/custom/jao-custom-browse.el @@ -159,9 +159,7 @@ "\\)\\'")) (defun jao--see (url &rest _r) - (start-process-shell-command "see" nil - (format (jao-d-l "open %s" "see %s") - (jao--fln url)))) + (start-process-shell-command "see" nil (format "see %s" (jao--fln url)))) (defun jao--find-file-other-window (url &rest _) (find-file-other-window (jao--fln url))) @@ -177,13 +175,13 @@ (jao-d-l (setq browse-url-handlers - `((jao-video--url-p . jao--see) - (,jao--doc-exts . jao--see) - (,jao--see-exts . jao--see) + `((jao-video--url-p . jao-mac-open) + (,jao--doc-exts . jao-mac-open) + (,jao--see-exts . jao-mac-open) ("^file://?.+\\.html?$" . ,jao-browse-url-function) ("^file://?" . jao--find-file-other-window) (,jao-browse--external-regexp . ,jao-browse-url-external-function) - (,jao-browse--sound-rx . jao--see) + (,jao-browse--sound-rx . jao-browse-play-sound-url) ("." . jao-browse-url-browse))) (setq browse-url-handlers `((jao-video--url-p . jao-maybe-view-video) -- cgit v1.2.3