Add magit-wanderlust.el.

This commit is contained in:
Phil Jackson 2010-07-10 11:39:50 +01:00
parent aab7bc85f6
commit 3153f777d1

18
magit-wanderlust.el Normal file
View file

@ -0,0 +1,18 @@
;;; magit-wanderlust.el --- wanderlust extension for Magit
(require 'magit)
(defun magit-wl-pipe-to-am ()
"Ask the user for a project in which to apply (via am) the
current email in wl."
(interactive)
"Pipe a wanderlust message into git am."
(let* ((proj (funcall magit-completing-read
"Apply to project: "
(magit-list-projects)
nil t nil nil)))
(wl-summary-pipe-message-subr
nil (format "cd '%s' && git am" proj))))
(provide 'magit-wanderlust)
;;; magit-wanderlust.el ends here