Emacs as MPD client

Original link: https://lujun9972.github.io/blog/2022/06/26/emacs-%E4%BD%9C%E4%B8%BA-mpd-%E5%AE%A2%E6%88%B7 %E7%AB%AF/index.html

mpc01.png

I just learned today that Emacs actually has a built-in mpc.el that can convert Emacs to [[https://wiki.archlinux.org/title/Music_Player_Daemon][MPD]]([[https://musicpd.org/][ Music Player Daemon]]) client.

1. Set [[help:mpc-host][mpc-host]]
#+begin_src emacs-lisp
(setq mpc-host “192.168.31.9:6600”)
#+end_src

#+RESULTS:
: 192.168.31.9:6600

2. Execute the [[help:mpc][mpc]] command to enter the mpc control interface

[[file:images/mpc01.png]]

3. Shortcuts
+ (mpc-previous) :: next song
+ g (mpc-seek-current) :: Set the playback progress of the current song
+ s (mpc-toggle-play) :: play/pause
+ g (mpc-seek-current) :: Set the playback progress of the current song
+ mpc-toggle-{consume,repeat,single,shuffle} :: set playback mode
+ q (mpc-quit) :: quit

This article is reprinted from: https://lujun9972.github.io/blog/2022/06/26/emacs-%E4%BD%9C%E4%B8%BA-mpd-%E5%AE%A2%E6%88%B7 %E7%AB%AF/index.html
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment