Added emms as doom module { :app emms } (#3581)
* Added emms dir to gitignore. * Added emms module. * Added emms module. * Added emms module. * I had a weird bug fixed it. * I suck. * Made the changer lissner requested. * Made a restart music daemon func. * Simplify config and bump package * Proofread readme Co-authored-by: Takoda J Horton <takodajhorton@protonmail.com> Co-authored-by: Henrik Lissner <henrik@lissner.net>
This commit is contained in:
parent
287e3e83b2
commit
7b07e612b4
4 changed files with 123 additions and 0 deletions
30
modules/app/emms/autoload.el
Normal file
30
modules/app/emms/autoload.el
Normal file
|
@ -0,0 +1,30 @@
|
|||
;;; app/emms/autoload.el -*- lexical-binding: t; -*-
|
||||
|
||||
;;;###autoload
|
||||
(defun +emms/mpd-start-music-daemon ()
|
||||
(interactive)
|
||||
(start-process "mpd" nil "mpd")
|
||||
(+emms/mpc-update-database)
|
||||
(emms-player-mpd-connect)
|
||||
(emms-cache-set-from-mpd-all)
|
||||
(message "MPD Started!"))
|
||||
|
||||
;;;###autoload
|
||||
(defun +emms/mpd-kill-music-daemon ()
|
||||
(interactive)
|
||||
(emms-stop)
|
||||
(call-process "mpd" nil nil nil "--kill")
|
||||
(message "MPD Killed!"))
|
||||
|
||||
;;;###autoload
|
||||
(defun +emms/mpc-update-database ()
|
||||
(interactive)
|
||||
(call-process "mpc" nil nil nil "update")
|
||||
(message "MPD Database Updated!"))
|
||||
|
||||
;;;###autoload
|
||||
(defun +emms/mpd-restart-music-daemon ()
|
||||
(interactive)
|
||||
(+emms/mpd-kill-music-daemon)
|
||||
(+emms/mpd-start-music-daemon)
|
||||
(message "MPD Restarted!"))
|
Loading…
Add table
Add a link
Reference in a new issue