Skip to content

Is there a way to dynamically generate multiple columns? #339

Closed Answered by tarsius
antifuchs asked this question in Q&A
Discussion options

You must be logged in to vote

I was hoping to break the transient "parts" into pieces

That too is possible without doing it dynamically:

(defvar demo-rust
  ["Rust"
   :inapt-if-not-derived rust-ts-mode
   ("a" "A" (lambda () (interactive) (message "aaaa")))
   ("b" "B" transient-echo-arguments)])

(defvar demo-elisp
  ["Elisp"
   :if-derived emacs-lisp-mode
   ("c" "C" transient-echo-arguments)
   ("d" "D" transient-echo-arguments)])

(defvar demo-outline-minor
  ["Outline-Minor"
   :if-non-nil outline-minor-mode
   ("e" "E" transient-echo-arguments)
   ("f" "F" transient-echo-arguments)])

(transient-define-prefix demo ()
  [demo-rust
   demo-elisp
   demo-outline-minor])

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@antifuchs
Comment options

@tarsius
Comment options

Answer selected by tarsius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants