doomemacs/modules/app/emms/config.el
Henrik Lissner be7ac25a84
fix: file-name-concat paths instead of concat
Treat paths as paths, rather than strings. Removes the requirements that
doom-*-dir variables end in slash (though I'll continue doing so as a
convention). Also moves a lot of cache/data into the current profile's
cache/data directories. Shouldn't actually affect anything for folks not
using Doom's profile system (yet).

Fix: #8616
2025-12-30 22:59:10 -05:00

18 lines
549 B
EmacsLisp

;;; app/emms/config.el -*- lexical-binding: t; -*-
(use-package! emms
:defer t
:init
(setq emms-directory (file-name-concat doom-profile-data-dir "emms")
emms-cache-file (file-name-concat doom-profile-cache-dir "emms"))
:config
(emms-all)
(emms-default-players)
(map! :map emms-playlist-mode-map
:localleader
"l" #'emms-toggle-repeat-playlist
"p" #'emms-insert-playlist
"i" #'emms-insert-file
"t" #'emms-toggle-repeat-track
"s" #'emms-playlist-save
"m" #'emms-shuffle))