summaryrefslogtreecommitdiff
path: root/.emacs.d/modules
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-10-08 08:29:47 +0300
committerThanos Apollo <[email protected]>2023-10-08 08:29:47 +0300
commitb53f9e9c583b18a6c66ea22c603fd4a2e2bfe8db (patch)
tree9bb3016d143d890bd1caa54374c10d1bf593fa12 /.emacs.d/modules
parent81b5585bb106ffa5d3812efa7e0e8f994bf5201c (diff)
emacs:(multimedia) fix emms
Rewrite emms configuration.
Diffstat (limited to '.emacs.d/modules')
-rw-r--r--.emacs.d/modules/thanos-multimedia.el38
1 files changed, 30 insertions, 8 deletions
diff --git a/.emacs.d/modules/thanos-multimedia.el b/.emacs.d/modules/thanos-multimedia.el
index df22f6d..362307f 100644
--- a/.emacs.d/modules/thanos-multimedia.el
+++ b/.emacs.d/modules/thanos-multimedia.el
@@ -34,14 +34,36 @@
(require 'straight)
(require 'emms)
-(setf emms-player-list '(emms-player-mpv)
- emms-player-mpv-parameters '("--no-video")
- emms-info-functions '(emms-info-native)
- emms-playlist-buffer-name "*Music*"
- emms-source-file-default-directory "~/Music")
-
-
-;(define-key emms-playlist-mode-map (kbd "A") #'emms-add-directory-tree)
+;;** EMMS
+ ;; Autoload the id3-browser and bind it to F7.
+ ;; You can change this to your favorite EMMS interface.
+ (autoload 'emms-smart-browse "emms-browser.el" "Browse with EMMS" t)
+ (global-set-key [(f7)] 'emms-smart-browse)
+
+ (with-eval-after-load 'emms
+ (emms-standard) ;; or (emms-devel) if you want all features
+ (setq emms-source-file-default-directory "~/Music"
+ emms-info-asynchronously t
+ emms-show-format "♪ %s")
+
+ ;; Might want to check `emms-info-functions',
+ ;; `emms-info-libtag-program-name',
+ ;; `emms-source-file-directory-tree-function'
+ ;; as well.
+
+ ;; Determine which player to use.
+ ;; If you don't have strong preferences or don't have
+ ;; exotic files from the past (wma) `emms-default-players`
+ ;; is probably all you need.
+ (emms-default-players)
+
+ ;; For libre.fm see `emms-librefm-scrobbler-username' and
+ ;; `emms-librefm-scrobbler-password'.
+ ;; Future versions will use .authoinfo.gpg.
+ )
+
+
+(define-key emms-playlist-mode-map (kbd "A") #'emms-add-directory-tree)
(define-key thanos/applications-map (kbd "e") 'emms)