https://github.com/rougier/nano-dialog
Emac native dialog box
https://github.com/rougier/nano-dialog
dialog emacs emacs-lisp gui
Last synced: 6 months ago
JSON representation
Emac native dialog box
- Host: GitHub
- URL: https://github.com/rougier/nano-dialog
- Owner: rougier
- License: gpl-3.0
- Created: 2023-04-16T18:27:00.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-21T07:52:08.000Z (about 3 years ago)
- Last Synced: 2025-07-09T16:19:16.079Z (12 months ago)
- Topics: dialog, emacs, emacs-lisp, gui
- Language: Emacs Lisp
- Homepage:
- Size: 529 KB
- Stars: 89
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.org
- License: LICENSE.txt
Awesome Lists containing this project
README
* Emacs native dialog box
This library allows to have popup dialog boxes that are actually child
frames where:
- header line is used to show the (optional) header
- mode line is used to show (optional) buttons
- buttons can be highlighted with cursor (tooltips hack)
- dialog content is a regular buffer
** Usage example
#+begin_src emacs-lisp
(defun click (frame label)
(message "You have clicked on %s" label))
(add-hook 'nano-dialog-button-hook #'click)
(nano-dialog "*nano-dialog*"
:title "[I] NANO Dialog"
:buttons '("OK" "CANCEL"))
#+end_src
** Screenshots
[[./nano-dialog.png]]