emms: ensure cache enabled, don't import directory every startup

This commit is contained in:
Evie Litherland-Smith 2024-04-15 11:09:10 +01:00
parent 30acb0d3fc
commit e661bc09d0

View file

@ -34,9 +34,8 @@
(emms-all) (emms-all)
(emms-default-players) (emms-default-players)
(emms-mpris-enable) (emms-mpris-enable)
(add-hook 'emms-player-started-hook #'emms-show) (emms-cache-enable)
(when (file-directory-p emms-source-file-default-directory) (add-hook 'emms-player-started-hook #'emms-show))
(emms-add-directory-tree emms-source-file-default-directory)))
#+end_src #+end_src
* MPV * MPV
#+begin_src emacs-lisp #+begin_src emacs-lisp