Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lassik/emacs-cowsay
Port of cowsay to pure Emacs Lisp
https://github.com/lassik/emacs-cowsay
Last synced: 29 days ago
JSON representation
Port of cowsay to pure Emacs Lisp
- Host: GitHub
- URL: https://github.com/lassik/emacs-cowsay
- Owner: lassik
- License: mit
- Created: 2021-04-22T17:28:00.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-25T21:30:17.000Z (over 2 years ago)
- Last Synced: 2024-05-12T00:15:45.643Z (8 months ago)
- Language: Emacs Lisp
- Homepage: https://melpa.org/#/cowsay
- Size: 59.6 KB
- Stars: 13
- Watchers: 5
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cowsay in Emacs
This is a workalike of the popular [cowsay](https://en.wikipedia.org/wiki/Cowsay "Link to English Wikipedia") amusement program that
runs directly in Emacs and does not require any external programs.This port is not written by the original author of `cowsay`, but
can load cartoon characters from the same files as the original and you can add custom cows (see [link](https://en.wikipedia.org/wiki/Cowsay "Repo") to repo with a lot of `.cow` files)!## Commands
Here Commands, before run use `cowsay-load-cows` for load cows, this is required, if you hasn't cows, then clone anything repo with cows, and add source's path to `cowsay-directories`: ([example](https://github.com/paulkaefer/cowsay-files)), this is required:* `cowsay-string` read string from minibuffer and in new buffer see `cowsay` result with user's string
* `cowsay-region` read region, and with this region view `cowsay` result in new buffer
* `cowsay-replace-region` read region and replace its with `cowsay` result
## Customization
Here all variables, which you can change:* `cowsay-directories` is list of directories in which put `.cow` files, defaults to "/usr/local/share/cows" and "/usr/share/cowsay/cows"
* `cowsay-preferred-cows` is list of names of cows, yea cows has names
* `cowsay-eyes` is 2-character string to use as the cow's eyes.
Example of customization:
```elisp
(setq cowsay-eyes "..")
```
* `cowsay-tongue`is 2-character string to use as the cow's tongue
Example of customization:
```elisp
(setq cowsay-eyes "|]")
```