From f201b0f4984d7b73b6f44ce8f6bdcb3f5b606d3d Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Thu, 18 Apr 2019 21:29:35 +0200 Subject: [PATCH] Emacs: Read mpeg with default player instead of mpeg_play --- .emacs.d/lisp/main.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.emacs.d/lisp/main.el b/.emacs.d/lisp/main.el index 727cc90f..e9b784f4 100644 --- a/.emacs.d/lisp/main.el +++ b/.emacs.d/lisp/main.el @@ -181,7 +181,12 @@ (".ogv" . "video/ogg") (".wmv" . "video/x-ms-wmv") (".mkv" . "video/x-matroska"))) - (add-to-list 'mailcap-mime-extensions ext))) + (add-to-list 'mailcap-mime-extensions ext)) + (when (version<= "26.2" emacs-version) + (assoc-delete-all + "mpeg" + (alist-get "video" mailcap-mime-data + nil nil #'string-equal)))) ;;; Default ispell dictionary. If not set, Emacs uses the current locale. (setq ispell-dictionary "english")