;; I find I can't live without the default M-r command -- rms.
;; (define-key pmail-mode-map "\er" 'pmail-search-backwards)
(define-key pmail-mode-map "s" 'pmail-expunge-and-save)
+ (define-key pmail-mode-map "\C-x\C-s" 'pmail-save)
(define-key pmail-mode-map "\es" 'pmail-search)
(define-key pmail-mode-map "t" 'pmail-toggle-header)
(define-key pmail-mode-map "u" 'pmail-undelete-previous-message)
(pmail-select-summary (set-buffer-modified-p nil))
(pmail-show-message)))
+(defun pmail-save ()
+ "Save the PMAIL file."
+ (interactive)
+ (set-buffer pmail-buffer)
+ (pmail-swap-buffers-maybe)
+ (save-buffer)
+ (if (pmail-summary-exists)
+ (pmail-select-summary (set-buffer-modified-p nil))
+ (pmail-show-message)))
+
(defun pmail-quit ()
"Quit out of PMAIL.
Hook `pmail-quit-hook' is run after expunging."