From 678ea71f618c3ce55f7709d7cab54f8cd9818193 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 26 Oct 2023 16:11:52 +0100 Subject: [PATCH] Add emms and initial config to emacs --- home/emacs/init.el | 1 + home/emacs/modules/custom-media-config.el | 7 +++++++ system/emacs.nix | 3 +++ 3 files changed, 11 insertions(+) create mode 100644 home/emacs/modules/custom-media-config.el diff --git a/home/emacs/init.el b/home/emacs/init.el index edfc7e6e..c23bd5da 100644 --- a/home/emacs/init.el +++ b/home/emacs/init.el @@ -30,6 +30,7 @@ (require 'custom-feed-config) (require 'custom-ide-config) (require 'custom-ligatures-config) +(require 'custom-media-config) (require 'custom-org-config) (require 'custom-project-config) (require 'custom-ui-config) diff --git a/home/emacs/modules/custom-media-config.el b/home/emacs/modules/custom-media-config.el new file mode 100644 index 00000000..a19304a8 --- /dev/null +++ b/home/emacs/modules/custom-media-config.el @@ -0,0 +1,7 @@ +(require 'emms-setup) +(emms-all) +(emms-add-directory-tree "~/Music/") +(setq emms-player-list '(emms-player-mpv) + emms-info-functions '(emms-info-native)) + +(provide 'custom-media-config) diff --git a/system/emacs.nix b/system/emacs.nix index 49234f72..44fed7ce 100644 --- a/system/emacs.nix +++ b/system/emacs.nix @@ -43,6 +43,9 @@ nix-mode rust-mode + # media-packages + emms + # org-packages denote org-appear