this post was submitted on 28 Nov 2023
1 points (100.0% liked)

Emacs

305 readers
1 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

I am happy to announce the release of Transient version 0.5.0.

More information can be found in a blog post.

Please consider supporting my work on Magit, Transient and many other Emacs packages and projects.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 9 months ago (1 children)

Here you go:

(transient-define-prefix demo ()
  [(:info "boring" :face shadow)
   (:info (lambda () (format "Major-mode: %s" major-mode)))
   ("x" transient-echo-arguments)])
(keymap-global-set "" #'demo)
[–] [email protected] 1 points 9 months ago

u/tarsius thanks for your example !