https://github.com/berquerant/emacs-alerter
Alerter partial integration for Emacs
https://github.com/berquerant/emacs-alerter
emacs-lisp
Last synced: 5 months ago
JSON representation
Alerter partial integration for Emacs
- Host: GitHub
- URL: https://github.com/berquerant/emacs-alerter
- Owner: berquerant
- Created: 2021-04-19T10:49:22.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-19T10:50:51.000Z (about 5 years ago)
- Last Synced: 2025-02-06T16:58:48.168Z (over 1 year ago)
- Topics: emacs-lisp
- Language: Emacs Lisp
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Alerter partial integration for Emacs
Launch a notification using [alerter](https://github.com/vjeantet/alerter) from Emacs.
## Usage
Launch a notification simply:
``` emacs-lisp
(alerter-alert "Hello!")
```
Schedule a notification:
``` emacs-lisp
(alerter-alert-at-time "I'm back." :time "2021-05-01 12:00:00")
```
Receive answer:
``` emacs-lisp
(alerter-alert "Continue?"
:actions "Yes,No"
:hook (lambda (proc output)
(when (equal (s-chomp output) "Yes")
(message "Got Yes"))))
```
## Log
Actual executed command, the output of the command, etc, are written in `alerter-notification-buffer-name` buffer.
You can disable this log by setting `alerter-notification-log-quiet` t.