A major mode to play mp3s under emacs
来源:互联网 发布:黑暗之魂3剧情知乎 编辑:程序博客网 时间:2024/05/14 20:26
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
;; 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
- A major mode to play mp3s under emacs
- emacs中怎样修改Major Mode的快捷键
- How to run JBoss (5.1) under debug mode
- play vim of how to switch to normal mode
- How to make Emacs to support Verilog mode
- To link a .xib to a class under Xcode4:
- EMACS-Major Modes
- [DirectShow] 002 - How To Play a File
- How to play a video file?
- DirectShow - How To Play a File(Windows)
- Wiki-how to set a graphics mode
- Tramp Emacs & plink under windows
- Linux PXE Under UEFI Mode
- How to run Process Guard under a limited account
- How to write a simplest wireshark dissector(under Linux)
- A Simple Introduction to Device Drivers under Linux
- How to Run Redis as a Service under Windows
- how to build a cgal program in qt under ubuntu
- 一个用Java编写的公式解析类
- 终于下雨了
- Tomcat配置技巧Top 10
- Happ New Year
- 狂晕~GRE报名确认信被MSN扔到Junk堆里去了
- A major mode to play mp3s under emacs
- 一致的数据访问技术——ADO/OLE DB
- Emacs plug
- 事件记录
- 编写高性能 Web 应用程序的10个技巧
- 调用winpcap驱动写arp多功能工具
- 新年快乐~~
- 快放假了..
- 中国的计算机教授做了什么?