Add EMMS + MPD config
This commit is contained in:
32
config.org
32
config.org
@@ -661,3 +661,35 @@ needs to be set up to install them if they aren't already.
|
|||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq send-mail-function 'sendmail-send-it)
|
(setq send-mail-function 'sendmail-send-it)
|
||||||
#+end_src
|
#+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
|
||||||
|
|||||||
Reference in New Issue
Block a user