summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--custom/jao-custom-browse.el12
-rw-r--r--init.el1
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)
diff --git a/init.el b/init.el
index 3055949..2f4bc95 100644
--- a/init.el
+++ b/init.el
@@ -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