aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/init/ycp-complete.el
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2025-01-21 09:44:48 +1100
committerYuchen Pei <id@ypei.org>2025-01-21 09:44:48 +1100
commitb2a862b56835a63245e4872a82e4da455f2523dc (patch)
tree09c7e2744f4ec181eee898cdf9ca03ff1441c6a1 /emacs/.emacs.d/init/ycp-complete.el
parentb167fc6a8a97eef6555160be1584a55f7031382c (diff)
[emacs] small fixes to emms and fediorg/exitter
emms: reset score delta to 1 if last command is not emms-playlist-mode-play-smart fediorg: show thumbnails only when they are legit image files
Diffstat (limited to 'emacs/.emacs.d/init/ycp-complete.el')
-rw-r--r--emacs/.emacs.d/init/ycp-complete.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init/ycp-complete.el b/emacs/.emacs.d/init/ycp-complete.el
index d123989..2caca0a 100644
--- a/emacs/.emacs.d/init/ycp-complete.el
+++ b/emacs/.emacs.d/init/ycp-complete.el
@@ -308,7 +308,14 @@
(:name qutebrowser :command my-browse-url-qutebrowser)
(:name download-and-open :command my-fetch-url)))
(setq hmm-external-handlers
- '((:name mpv
+ '((:name feh
+ :external-command "feh %U"
+ :display-name "feh image viewer"
+ :description "Open url with feh"
+ :schemes
+ ("ftp" "http" "https" "mms" "rtmp" "rtsp" "sftp" "smb" "srt")
+ :handling :url)
+ (:name mpv
:external-command "mpv %U"
:display-name "mpv player"
:description "Play url with mpv"