summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/km-mail.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/lisp/km-mail.el b/lisp/km-mail.el
index 9a3a3ab..35355c5 100644
--- a/lisp/km-mail.el
+++ b/lisp/km-mail.el
@@ -21,6 +21,7 @@
;;; Code:
(require 'dash)
+(require 'projectile)
(require 'gnus)
(require 'gnus-group)
(require 'gnus-topic)
@@ -127,6 +128,17 @@ to group buffer instead of moving to next group."
(shr-browse-url)
(shr-next-link))
+(defun km/gnus-pipe-to-project ()
+ "Call `gnus-summary-pipe-output' in project root."
+ (interactive)
+ (let ((default-directory (completing-read
+ "Project: "
+ (projectile-relevant-known-projects)))
+ (gnus-summary-pipe-output-default-command
+ (or gnus-summary-pipe-output-default-command
+ "git am")))
+ (call-interactively #'gnus-summary-pipe-output)))
+
;;; Message mode