diff options
-rw-r--r-- | piem.el | 10 | ||||
-rw-r--r-- | piem.texi | 15 |
2 files changed, 24 insertions, 1 deletions
@@ -5,7 +5,7 @@ ;; Author: Kyle Meyer <kyle@kyleam.com> ;; Keywords: vc, tools ;; Version: 0.1.0 -;; Package-Requires: ((emacs "26.3")) +;; Package-Requires: ((emacs "26.3") (transient "0.2.0")) ;; Homepage: https://git.kyleam.com/piem/about/ ;; This program is free software; you can redistribute it and/or modify @@ -43,6 +43,7 @@ (require 'piem-maildir) (require 'rfc2047) (require 'subr-x) +(require 'transient) (require 'url) (defvar url-http-end-of-headers) @@ -699,6 +700,13 @@ If CODEREPO is given, switch to this directory before calling (magit-status-setup-buffer) (dired ".")))) +;;;###autoload (autoload 'piem-dispatch "piem" nil t) +(define-transient-command piem-dispatch () + "Invoke a piem command." + [("a" "apply patch" piem-am) + ("b" "call b4-am" piem-b4-am) + ("i" "inject thread into maildir" piem-inject-thread-into-maildir)]) + (defun piem-please () @@ -119,6 +119,21 @@ designed to work with public-inbox archives.) @node Getting started @chapter Getting started +@findex piem-dispatch + +@code{piem-dispatch} transient +(see +@ifinfo +@ref{Top,,,transient} +@end ifinfo +@ifnotinfo +@url{https://magit.vc/manual/transient/} +@end ifnotinfo +) +provides an entry point to piem commands. +It's recommended to bind @code{piem-dispatch} to a key. However, before +most of those commands do anything useful, you need to register inboxes +and activate at least one minor mode. @node Registering inboxes @section Registering inboxes |