Skip to content

Instantly share code, notes, and snippets.

@zhaojiangbin
zhaojiangbin / test-transient.el
Created April 19, 2020 17:50
Emacs: experiment with transient
(require 'transient)
;; True value for boolean variables has to be the slot value of
;; :argument.
(defvar tt--toggle "--toggle")
;; Empty string "" in string variables are considered changed and
;; highlighted in transient as if they were boolean.
(defvar tt--strarg nil)
(defclass tt--class-boolean (transient-infix)