From 4ffdc3317f332fee97697a976c517bfe7edbc544 Mon Sep 17 00:00:00 2001 From: jao Date: Tue, 1 Jun 2021 01:31:33 +0100 Subject: mpc/mpdn split: elmd is only needed for notifications --- init.org | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'init.org') diff --git a/init.org b/init.org index 6909018..04a3f8d 100644 --- a/init.org +++ b/init.org @@ -2950,8 +2950,6 @@ #+end_src *** mpc #+begin_src emacs-lisp - (use-package elmpd :ensure t) - (use-package jao-mpc :demand t :commands jao-mpc-setup) @@ -2972,23 +2970,23 @@ (defalias 'jao-player-echo 'jao-mpc-echo-current) (defalias 'jao-player-list 'jao-mpc-show-playlist) (defalias 'jao-player-browse 'jao-mpc-show-albums) + + (use-package elmpd :ensure t) + (use-package jao-mpdn :demand t) + (jao-mpdn-setup) #+end_src *** mopidy #+begin_src emacs-lisp (defvar jao-mopidy-port 6669) - (defvar jao-mopidy-conn - (let ((jao-mpc-port jao-mopidy-port)) (jao-mpc--connect "jao-mopidy"))) (defmacro jao-mopidy-def (name args &rest body) `(defun ,name ,args (interactive) - (let ((jao-mpc--connection jao-mopidy-conn) - (jao-mpc-port jao-mopidy-port)) - ,@body))) + (let ((jao-mpc-port jao-mopidy-port)) ,@body))) (jao-mopidy-def jao-mopidy-show-playlist () (jao-mpc-show-playlist)) (jao-mopidy-def jao-mopidy-clear () (jao-mpc-clear)) - (jao-mopidy-def jao-mopidy-disconnect () (jao-mpc-disconnect)) + #+end_src *** hydras #+begin_src emacs-lisp -- cgit v1.2.3