Improve oni-gnus-delete-forward

This commit is contained in:
Tom Willemse 2017-03-27 21:10:51 -07:00
parent 4d022c5d86
commit 5dae2bbfcd

View file

@ -27,11 +27,13 @@
(require 'gnus-sum)
;;;###autoload
(defun oni-gnus-delete-forward ()
"Delete the article under point and move to the next one."
(interactive)
(defun oni-gnus-delete-forward (&optional n)
"Delete the article under point and move to the next one.
Do this N times."
(interactive "p")
(dotimes (_ (or n 1))
(gnus-summary-delete-article)
(gnus-summary-next-subject 1))
(gnus-summary-next-subject 1)))
(provide 'oni-gnus)
;;; oni-gnus.el ends here