Use mpv as default to play media files from dired
Seems to be more robust nowadays than mplayer.
This commit is contained in:
parent
dea0b23e69
commit
45e5e5a9fc
6
init.el
6
init.el
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user