Use mpv as default to play media files from dired

Seems to be more robust nowadays than mplayer.
This commit is contained in:
Daniel Borchmann 2026-03-22 08:30:36 +01:00
parent dea0b23e69
commit 45e5e5a9fc
No known key found for this signature in database
GPG Key ID: 50EA937BF472ADD1

View File

@ -2275,7 +2275,7 @@ Note that this workaround is incomplete, as explained in this comment."
("<tab>" . dired-subtree-toggle)
("<C-tab>" . dired-subtree-cycle))
:init (progn
(setq dired-dwim-target t
(setopt dired-dwim-target t
dired-listing-switches "-ahlvF"
dired-ls-F-marks-symlinks t
dired-hide-details-hide-information-lines nil
@ -2296,7 +2296,7 @@ Note that this workaround is incomplete, as explained in this comment."
dired-movement-style 'bounded
dired-filename-display-length nil)
(setq dired-guess-shell-alist-user
(setopt dired-guess-shell-alist-user
'(("\\.pdf\\'" "evince")
("\\.ps\\'" "evince")
("\\.\\(?:djvu\\|eps\\)\\'" "evince")
@ -2304,7 +2304,7 @@ Note that this workaround is incomplete, as explained in this comment."
("\\.\\(?:xcf\\)\\'" "gimp")
("\\.\\(?:mp4\\|mkv\\|avi\\|flv\\|ogv\\|webm\\)\\(?:\\.part\\)?\\'"
"vlc")
("\\.\\(?:mp3\\|flac\\|ogg\\)\\'" "mplayer")
("\\.\\(?:mp3\\|flac\\|ogg\\)\\'" "mpv")
("\\.docx?\\'" "loffice"))))
:config (progn
(put 'dired-find-alternate-file 'disabled nil)