diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2025-03-07 08:11:10 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2025-03-07 08:11:10 -0500 |
commit | c8cd91133cdecfc3bbda1b1a5c157df146cbfd97 (patch) | |
tree | fee1ece1c93d681994b99a9f0f8ff3a16dbd0933 | |
parent | 7cfd7a6d3cc666d8701780fe30e3200a4f308d81 (diff) |
Start transient dispatch command
-rw-r--r-- | emacs/.config/emacs/init.el | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/emacs/.config/emacs/init.el b/emacs/.config/emacs/init.el index ad0d924..4ec991b 100644 --- a/emacs/.config/emacs/init.el +++ b/emacs/.config/emacs/init.el @@ -519,6 +519,25 @@ (keymap-global-set "C-c p" #'kj/pass) +(defun kj/transient-command (&optional args) + (interactive + (list (transient-args 'kj/transient))) + (message "args: %s" args)) + +(use-package transient :ensure nil + :defer 1 + :init + (transient-define-prefix + kj/transient () + "KJ Transient" + ["Arguments" + ("-s" "Switch" "--switch") + ("-a" "Another switch" "--another") + ("-m" "Argument test" "--message=")] + ["Actions" + ("d" "Action d" kj/transient-command)])) + + ;;;; Applications ;;;;; Tramp (use-package tramp :ensure nil) |