diff options
author | jao <jao@gnu.org> | 2025-10-07 00:02:27 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2025-10-07 00:02:27 +0100 |
commit | d2639403bd1862bea802dd2c4ba918006dafd960 (patch) | |
tree | 0b28d5139432ab0d85e5f48eb76a07aaef0cae90 | |
parent | 30ce6db339b0cd9e2d1c2dfca78326ec3de9b59b (diff) | |
download | elibs-d2639403bd1862bea802dd2c4ba918006dafd960.tar.gz elibs-d2639403bd1862bea802dd2c4ba918006dafd960.tar.bz2 |
browse-url tweaksmain
-rw-r--r-- | custom/jao-custom-browse.el | 12 | ||||
-rw-r--r-- | init.el | 1 |
2 files changed, 5 insertions, 8 deletions
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) @@ -1648,7 +1648,6 @@ (jao-exec-in-term (format "ssh %s" h) (format "*ssh %s*" h)))) ;;; Chats - (jao-when-linux (require 'jao-custom-chats)) ;;; Multimedia |