Improve oni-gnus-delete-forward
This commit is contained in:
parent
4d022c5d86
commit
5dae2bbfcd
1 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue