;;; app/emms/config.el -*- lexical-binding: t; -*-

(use-package! emms
  :defer t
  :init
  (setq emms-directory (concat doom-etc-dir "emms")
        emms-cache-file (concat doom-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))
