I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2.7 KiB

EMMS

EMMS1 is Emacs as a multimedia player.

Setup

Make sure you install the required packages on your system before loading the module.

RUN apt install -y mpc mpd mpv

Music player daemon

MPD2 uses a simple text configuration file. Most options only accept a string in " quotes ". The most important option to configure is the music_directory. This is where all of the music mpd2 will serve exists. It will read the directory recursively.

music_directory  "~/.local/share/media/music"

You can configure where mpd2 will look for playlists. You may want to configure this option if you share your playlists between devices.

playlist_directory  "~/.local/share/media/playlists"

It's possible to serve mpd2 over the network by configuring it to listen on 0.0.0.0, or by the systems host name. For a local setup, leave it as localhost.

bind_to_address  "localhost"
port             "6600"

Deploy the configuration

MPD2 will look for its configuration in ~/.config/mpd/mpd.conf, and /etc/mpd.conf respectively.

(let ((mpd-dir "~/.config/mpd"))
  (unless (file-exists-p mpd-dir)
    (make-directory mpd-dir t))
  (dotfiles/symlink "~/.emacs.d/config/mpd.conf"
                    (concat mpd-dir "/mpd.conf")))

Config

Displays and play multimedia from within Emacs with emms1, using a variety of external players from different sources. It can run as a minimalist player and controlled with commands, or a fully fledged interactive media browser. It can display album art, play streaming media, tag files, search lyrics, and provide mpd2 connectivity.

(use-package emms
  :custom (emms-player-mpd-server-name "localhost")
          (emms-player-mpd-server-port "6600")
  :config (require 'emms-setup)
          (require 'emms-player-mpd)
          (emms-all)
          (emms-default-players)
          (add-to-list 'emms-info-functions 'emms-info-mpd)
          (add-to-list 'emms-player-list 'emms-player-mpd))

Shortcuts

Place bindings for emms1 behind SPC u:

(dotfiles/leader
  "u" '(:ignore t :which-key "EMMS"))

Footnotes