nixos/home/emacs/modules/custom-media-config.el

22 lines
629 B
EmacsLisp
Raw Normal View History

2023-10-26 16:11:52 +01:00
(setq emms-player-list '(emms-player-mpv)
emms-info-functions '(emms-info-native)
emms-source-file-default-directory "~/Music"
emms-lyrics-dir "~/Music/lyrics")
2023-10-26 16:11:52 +01:00
(when (require 'emms-setup nil :noerror)
(emms-all)
(add-hook 'emms-player-started-hook #'emms-show)
(add-hook 'emms-player-paused-hook #'emms-show)
(when (require 'hydra nil :noerror)
(defhydra emms (global-map "C-c e")
"emms"
("b" emms-smart-browse)
("d" emms-show)
("s" emms-start)
("S" emms-stop)
("n" emms-next)
("p" emms-previous)
("P" emms-pause))))
2023-10-26 16:11:52 +01:00
(provide 'custom-media-config)