From c0bf0f10c4188244d87c548ea97165f1a56659eb Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 3 Apr 2024 05:06:20 +0300 Subject: emacs: Remove emms & Add moc-player --- .emacs.d/init.el | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) (limited to '.emacs.d/init.el') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index a3fa689..d8662a7 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -396,26 +396,6 @@ :config (add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode))) -(use-package emms - :defer t - :init (define-prefix-command 'thanos/emms) - :config - (with-eval-after-load 'emms - (emms-all) - (setq emms-source-file-default-directory "~/Music" - emms-info-asynchronously t - emms-show-format "♪ %s") - (emms-default-players)) - (setf emms-player-mpv-parameters '("--quiet" "--really-quiet" "--no-audio-display" "--no-video")) - :bind (("C-c z" . thanos/emms) - :map thanos/emms - ("n" . 'emms-next) - ("p" . 'emms-previous) - ("SPC" . 'emms-pause) - ("e" . 'emms) - ("C-e" . 'emms-smart-browse) - :map emms-playlist-mode-map - (("A" . 'emms-add-directory-tree)))) ;; Clojure (use-package cider :defer t) @@ -652,6 +632,16 @@ (setf xref-show-xrefs-function #'consult-xref xref-show-definitions-function #'consult-xref)) +(use-package moc-player + :defer t + :straight '(moc-player :local-repo "~/Dev/emacs-lisp/moc-player") + :init (define-prefix-command 'thanos/mocp) + :bind (("C-z" . thanos/mocp) + :map thanos/mocp + ("SPC" . 'mocp-toggle-pause) + ("n" . 'mocp-next) + ("p" . 'mocp-previous))) + ;; My packages (use-package yeetube :init (define-prefix-command 'thanos/yeetube-map) -- cgit v1.2.3