Skip to content

rougier/nano-dialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4127d8f · Apr 21, 2023

History

29 Commits
Apr 16, 2023
Apr 19, 2023
Apr 21, 2023
Apr 16, 2023

Repository files navigation

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

(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"))

Screenshots

./nano-dialog.png

Releases

No releases published

Packages

No packages published