Emacs 作为 MPD 客户端
2022年6月29日 08:00
今天才知道,Emacs居然内置了一个 mpc.el 可以将 Emacs 转换为 [[https://wiki.archlinux.org/title/Music_Player_Daemon][MPD]]([[https://musicpd.org/][Music Player Daemon]])客户端。
1. 设置 [[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. 执行 [[help:mpc][mpc]] 命令,进入 mpc 控制界面
   [[file:images/mpc01.png]]
3. 快捷键
   + < (mpc-next) :: 上一首歌
   + > (mpc-previous) :: 下一首歌
   + g (mpc-seek-current) :: 设置当前歌曲的播放进度
   + s (mpc-toggle-play) :: 播放/暂停
   + g (mpc-seek-current) :: 设置当前歌曲的播放进度
   + mpc-toggle-{consume,repeat,single,shuffle} :: 设置播放模式
   + q (mpc-quit) :: 退出