Skip to content

Instantly share code, notes, and snippets.

@abrochard
Created June 12, 2019 19:47
Show Gist options
  • Save abrochard/266bfcd90daf46c161e167c9bc4e5aba to your computer and use it in GitHub Desktop.
Save abrochard/266bfcd90daf46c161e167c9bc4e5aba to your computer and use it in GitHub Desktop.
transient demo
(defun echo-function (&optional args)
(interactive
(list (transient-args 'test-transient-command)))
(message "echo %s" args))
(define-infix-argument test-transient:--message ()
:description "Message"
:class 'transient-option
:shortarg "-m"
:argument "--message=")
(define-transient-command test-transient-command ()
"Test transient comment."
["Arguments"
(test-transient:--message)
("-s" "Squash" "--squash")]
["Actions"
("e" "Echo function" echo-function)])
(test-transient-command)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment