branch: externals/transient commit bf2901927dce31d5522db95c6ab22a93f7738a09 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
manual: Regenerate --- docs/transient.texi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/transient.texi b/docs/transient.texi index 46e2305b2f..be62d36629 100644 --- a/docs/transient.texi +++ b/docs/transient.texi @@ -2360,6 +2360,20 @@ the transient popup, you will be able to yank it in another buffer. #'transient--do-stay) @end lisp +@anchor{How can I autoload prefix and suffix commands?} +@appendixsec How can I autoload prefix and suffix commands? + +If your package only supports Emacs 30, just prefix the definition +with @code{;;;###autoload}. If your package supports released versions of +Emacs, you unfortunately have to use a long form autoload comment +as described in @ref{Autoload,,,elisp,}. + +@lisp +;;;###autoload (autoload 'magit-dispatch "magit" nil t) +(transient-define-prefix magit-dispatch () + ...) +@end lisp + @anchor{How does Transient compare to prefix keys and universal arguments?} @appendixsec How does Transient compare to prefix keys and universal arguments?