diff options
author | jao <jao@gnu.org> | 2025-05-23 14:44:16 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2025-05-23 14:44:16 +0100 |
commit | 23c1bcb6dbc726bd2a4a2400ef37e2cd0f95015d (patch) | |
tree | fb1962921b2f0571fb1677db654946f43e1822a7 | |
parent | e3ebc5e792d8924aa6b184ddcdd05c8e96fa1e03 (diff) | |
download | elibs-23c1bcb6dbc726bd2a4a2400ef37e2cd0f95015d.tar.gz elibs-23c1bcb6dbc726bd2a4a2400ef37e2cd0f95015d.tar.bz2 |
better view video command
-rw-r--r-- | init.el | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1313,9 +1313,10 @@ (defun jao-maybe-view-video (url &rest _ignored) (interactive) - (if (y-or-n-p "View video (y) or web page (n)? ") - (jao-view-video url) - (funcall jao-browse-url-function url))) + (let ((w (read-char "View video (v) or web page (w)? "))) + (cond ((eq w ?v) (jao-view-video url)) + ((eq w ?w) (funcall jao-browse-url-function url)) + (t (message "Aborted"))))) ;;;; web browsers (defun jao-www--buffer-p (b) |