https://github.com/lujun9972/emacs-rainbow-fart
一个在你编程时持续夸你写的牛逼的扩展,可以根据代码关键字播放贴近代码意义的真人语音。Inspired from vscode-rainbow-fart
https://github.com/lujun9972/emacs-rainbow-fart
Last synced: 6 months ago
JSON representation
一个在你编程时持续夸你写的牛逼的扩展,可以根据代码关键字播放贴近代码意义的真人语音。Inspired from vscode-rainbow-fart
- Host: GitHub
- URL: https://github.com/lujun9972/emacs-rainbow-fart
- Owner: lujun9972
- License: gpl-3.0
- Created: 2020-06-27T09:51:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-28T02:27:28.000Z (about 6 years ago)
- Last Synced: 2025-04-04T03:26:49.896Z (over 1 year ago)
- Homepage: https://saekiraku.github.io/vscode-rainbow-fart/#/zh/
- Size: 4.51 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
* Intro
[[https://github.com/stardiviner/emacs-rainbow-fart/workflows/CI/badge.svg]]
[[logo.png]]
🌈 EMACS RAINBOW FART
This package is inspired from [[https://saekiraku.github.io/vscode-rainbow-fart/#/zh/][vscode-rainbow-fart]] and [[https://github.com/DogLooksGood/rainbow-fart.el][rainbow-fart.el]].
This is an interesting idea package.
Here is a screencast which is recorded by [[https://github.com/DogLooksGood][DogLooksGood]].
[[file:Emacs rainbow-fart demo.mp4][Emacs rainbow-fart demo.mp4]]
* Features
- auto play voice when you type keywords
- auto play voice when you put point/cursor on flycheck error
- auto play voice when in specific time quantum
* Install
** use-package + Quelpa
#+begin_src emacs-lisp
(use-package rainbow-fart
:quelpa (rainbow-fart :fetcher "github" :repo "stardiviner/emacs-rainbow-fart")
:hook (prog-mode . rainbow-fart-mode))
#+end_src
* Usage
Just like the screencast video shows, A voice played when you type some keywords.
* Customization
** choose voice model
#+begin_src emacs-lisp
(setq rainbow-fart-voice-model "JustKowalski")
#+end_src
*NOTE*: Currently only "JustKowalski" built-in. Contribution welcome.
** control keyword voice
Not frequently play voice for every keywords:
#+begin_src emacs-lisp
(setq rainbow-fart-keyword-interval (* 60 10))
#+end_src
Play voice for every keywords:
#+begin_src emacs-lisp
(setq rainbow-fart-keyword-interval nil)
#+end_src
** control hourly reminder
Disable hourly reminder:
#+begin_src emacs-lisp
(setq rainbow-fart-time-interval nil)
#+end_src
* Contribution
- [ ] Need an elegant solution to handle different model voices which have different voice files
- [ ] Need more voice models
- [ ] I will add contributors into list
** Contributors
- DogLooksGood
- lujun9972
* LICENSE
This package elisp code is published under GPL v3, the voice data is from
[[https://github.com/JustKowalski][GitHub@JustKowalski]] and project [[https://github.com/SaekiRaku/vscode-rainbow-fart][vscode-rainbow-fart]] which is released under [[https://github.com/SaekiRaku/vscode-rainbow-fart/blob/master/LICENSE][MIT license]].