https://github.com/myterminal/prompt-you
A simple library to prompt user to select from a list of options, for Emacs
https://github.com/myterminal/prompt-you
emacs
Last synced: about 1 month ago
JSON representation
A simple library to prompt user to select from a list of options, for Emacs
- Host: GitHub
- URL: https://github.com/myterminal/prompt-you
- Owner: myTerminal
- License: gpl-3.0
- Created: 2016-09-24T15:44:21.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-07-14T05:32:32.000Z (almost 5 years ago)
- Last Synced: 2026-03-08T04:05:37.427Z (4 months ago)
- Topics: emacs
- Language: Emacs Lisp
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prompt-you
[](https://marmalade-repo.org/packages/prompt-you)
[](https://www.gnu.org/licenses/gpl.html)
A simple library to prompt the user to select from a list of options, for Emacs
## Installation
### Manual
Save the file *prompt-you.el* to disk and add the directory containing it to `load-path` using a command in your *.emacs* file like:
(add-to-list 'load-path "~/.emacs.d/")
The above line assumes that you've placed the file into the Emacs directory '.emacs.d'.
Start the package with:
(require 'prompt-you)
### Marmalade
If you have Marmalade added as a repository to your Emacs, you can just install *prompt-you* with
M-x package-install prompt-you RET
## Usage
You can show a prompt with options as
(prompt-you-now
"What would you like to do?"
(list '("1"
"Invert colors"
(lambda ()
(invert-face 'default)))
'("2"
"Clean frame"
(lambda ()
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1))))
"Done: ")