summaryrefslogtreecommitdiff
path: root/.config/emacs/bd-emms.el
diff options
context:
space:
mode:
authorbd <bdunahu@colostate.edu>2024-01-10 19:44:21 -0700
committerbd <bdunahu@colostate.edu>2024-01-10 19:44:21 -0700
commit1ced565816120bfcc351daf9fc3a4e851162e3b7 (patch)
tree93e9c23660cd07f4dba861f334b23c03d322f48c /.config/emacs/bd-emms.el
parentda5922a476cebdbbf338f0192165dbbbcd3f7b6f (diff)
Initial commit of new repository structure
Diffstat (limited to '.config/emacs/bd-emms.el')
-rw-r--r--.config/emacs/bd-emms.el40
1 files changed, 0 insertions, 40 deletions
diff --git a/.config/emacs/bd-emms.el b/.config/emacs/bd-emms.el
deleted file mode 100644
index 573f275..0000000
--- a/.config/emacs/bd-emms.el
+++ /dev/null
@@ -1,40 +0,0 @@
-;; -*- lexical-binding: t; -*-
-
-(defun emms-open-playlist-buffer ()
- "Opens the current playlist in the right
-side window."
- (interactive)
- (if (get-buffer emms-playlist-buffer-name)
- (progn (display-buffer-in-side-window (get-buffer emms-playlist-buffer-name) '((side . right)))
- (select-window (get-buffer-window emms-playlist-buffer-name)))
- (message "The Ainur cannot hear you...")))
-
-(defun emms-quickstart ()
- "Queues a shuffled playlist and starts
-playback."
- (interactive)
- (emms-stop)
- (when (bufferp emms-playlist-buffer-name)
- (kill-buffer emms-playlist-buffer-name))
- (emms-play-directory-tree (expand-file-name "~/Personal/mpd/music/"))
- (emms-shuffle))
-
-(use-package emms
- :bind (("C-z C-m" . 'emms-open-playlist-buffer)
- ("C-z C-p" . 'emms-play-playlist)
- ("C-z C-s" . 'emms-quickstart))
- :config
- (emms-all)
- (add-to-list 'emms-info-functions 'emms-info-functions 'emms-info-mpd)
- (add-to-list 'emms-player-list 'emms-player-mpd)
- :custom
- ;; make sure mpd is configured similarly
- (emms-player-mpd-server-name "localhost")
- (emms-player-mod-server-port "6600")
- ;; set dir and volume keys
- (emms-player-mpd-music-directory (expand-file-name "~/Personal/mpd/music/"))
- (emms-source-file-default-directory (expand-file-name "~/Personal/mpd/playlists/"))
- (emms-volume-change-function 'emms-volume-mpd-change)
- ;; misc
- (emms-mode-line-format "%s ")
- (emms-playlist-buffer-name "*Playlist*"))