From 9da063035880387643ec5d43ecfc3cc1d437f064 Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Fri, 1 Jan 2021 00:00:32 +0000 Subject: [PATCH] Add EMMS + MPD config --- config.org | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/config.org b/config.org index 8ba0bd5..04a6ab0 100644 --- a/config.org +++ b/config.org @@ -661,3 +661,35 @@ needs to be set up to install them if they aren't already. #+begin_src emacs-lisp (setq send-mail-function 'sendmail-send-it) #+end_src + +* Multimedia + EMMS seems like a decent multimedia system for Emacs and why not + enable all the stable features to start with. Also, =mplayer= makes + a good fallback player. + + #+begin_src emacs-lisp + (use-package emms + :config + (emms-all) + (add-to-list 'emms-player-list 'emms-player-mplayer)) + #+end_src + +** MPD + To get EMMS to talk to MPD, we need to tell it how to connect to + it, and to use it for getting track info and playing tracks: + + #+begin_src emacs-lisp + (add-to-list 'emms-info-functions 'emms-info-mpd) + (add-to-list 'emms-player-list 'emms-player-mpd) + (setq emms-player-mpd-server-name "localhost" + emms-player-mpd-server-port "6600" + emms-player-mpd-music-directory "~/mus") + #+end_src + + With those options in place, connecting should work fine (assuming + the underlying system has MPD running). + + #+begin_src emacs-lisp + (emms-player-mpd-connect) + (emms-cache-set-from-mpd-all) + #+end_src