A major mode to play mp3s under emacs

介绍了在Emacs下播放MP3的主模式,作者作为重度Emacs用户,讨厌花哨的GUI,编写了这个基于mpg321的前端模式。它能在缓冲区显示MP3列表,控制mpg321并组织播放序列,还可通过特定方式控制增益。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

   A major mode to play mp3s under emacs

I am an intensive emacs user and I hate fancy GUIs à la xmms. Hence, I wrote this major mode front-end to mpg321. You can get the source here: mp3play.el. It displays your list of mp3 in a buffer and allows you to control mpg321 and organise sequences of mp3 to play. You can check this impressive screenshot. Note that to control the gain, mp3play can either use aumix, or directly control the gain of mpg321 if you use the patch below.

I have the following in my .emacs

(setq mp3play-dirlist '("~/mp3")
      ;; I want to see the remaining time
      mp3play-show-timing 1
      ;; This because I use a patched mpg321 to control the gain
      mp3play-use-remote-gain t
      ;; Initially, set the gain to 50%
      mp3play-initial-gain 50
      ;; Where to store the info about the song playing to resume later
      mp3play-resume-file "~/.mp3play-resume")

(load "mp3play")

;; M-/ go to the mp3play buffer
(define-key global-map [(meta //)] 'mp3play)
;; C-x C-m C-s stops the current mp3
(define-key global-map [(control x) (control m) (control s)] 'mp3play-stop)
;; C-x C-m C-p pauses it
(define-key global-map [(control x) (control m) (control p)] 'mp3play-pause)
;; C-x C-m C-i shows mp3 informations
(define-key global-map [(control x) (control m) (control i)]   'mp3play-show-current-information)

下载链接 http://diwww.epfl.ch/~fleuret/files/mp3play.el
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值