2024-02-15 08:18:41 +00:00
|
|
|
#+title: Media Config
|
|
|
|
#+author: Evie Litherland-Smith
|
|
|
|
#+email: evie@xenia.me.uk
|
|
|
|
#+filetags: :emacs:config:org:
|
2024-02-15 08:45:37 +00:00
|
|
|
#+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent
|
2024-02-15 12:01:36 +00:00
|
|
|
* EMMS
|
2024-02-15 08:18:41 +00:00
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(setq emms-mode-line-icon-enabled-p nil)
|
|
|
|
(use-package emms
|
|
|
|
:bind (("C-c e e" . emms-smart-browse)
|
|
|
|
("C-c e p" . emms-pause)
|
|
|
|
("C-c e s" . emms-stop)
|
|
|
|
("C-c e z" . emms-toggle-repeat-track)
|
|
|
|
("C-c e C-r" . emms-toggle-repeat-playlist)
|
|
|
|
("C-c e C-b" . emms-browser)
|
|
|
|
("C-c e C-p" . emms-playlist-mode-go)
|
|
|
|
("<XF86AudioPlay>" . emms-pause)
|
|
|
|
("<XF86AudioPrev>" . emms-previous)
|
|
|
|
("<XF86AudioNext>" . emms-next)
|
|
|
|
:map emms-browser-mode-map
|
|
|
|
("e" . emms-smart-browse)
|
|
|
|
("P" . emms-pause)
|
|
|
|
("S" . emms-stop)
|
|
|
|
("z" . emms-toggle-repeat-track)
|
|
|
|
:map emms-playlist-mode-map
|
|
|
|
("e" . emms-smart-browse))
|
|
|
|
:custom
|
|
|
|
(emms-source-file-default-directory "~/Music/")
|
|
|
|
(emms-lyrics-dir (expand-file-name "lyrics" "~/Music/"))
|
|
|
|
(emms-browser-covers #'emms-browser-cache-thumbnail-async)
|
|
|
|
(emms-browser-default-covers (list (expand-file-name "placeholder.jpg" "~/Music/")))
|
|
|
|
(emms-repeat-playlist t)
|
|
|
|
:config
|
|
|
|
(emms-all)
|
|
|
|
(emms-default-players)
|
|
|
|
(emms-mpris-enable)
|
2024-04-15 11:09:10 +01:00
|
|
|
(emms-cache-enable)
|
|
|
|
(add-hook 'emms-player-started-hook #'emms-show))
|
2024-02-15 08:18:41 +00:00
|
|
|
#+end_src
|
2024-02-16 06:24:17 +00:00
|
|
|
* MPV
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(use-package mpv
|
|
|
|
:ensure t
|
|
|
|
:diminish)
|
|
|
|
#+end_src
|