* mu4e/mu4e-main.el (mu4e-interrupt-update-mail): New function to stop update process.(SIGINT) (mu4e~main-view): Use it and bind it to S.
* mu4e/mu4e-utils.el (mu4e-update-mail-and-index): Fix Window and buffer process.
This commit is contained in:
@ -47,6 +47,7 @@
|
||||
|
||||
;;
|
||||
(define-key map "U" 'mu4e-update-mail-and-index)
|
||||
(define-key map "S" 'mu4e-interrupt-update-mail)
|
||||
(define-key map (kbd "C-S-u") 'mu4e-update-mail-and-index)
|
||||
|
||||
|
||||
@ -134,7 +135,8 @@ clicked."
|
||||
|
||||
(mu4e~main-action-str "\t* [U]pdate email & database\n"
|
||||
'mu4e-update-mail-show-window)
|
||||
|
||||
(mu4e~main-action-str "\t* [S]top update email\n"
|
||||
'mu4e-interrupt-update-mail)
|
||||
;; show the queue functions if `smtpmail-queue-dir' is defined
|
||||
(if (file-directory-p smtpmail-queue-dir)
|
||||
(concat
|
||||
@ -152,6 +154,11 @@ clicked."
|
||||
(mu4e-main-mode)
|
||||
(switch-to-buffer buf))))
|
||||
|
||||
(defun mu4e-interrupt-update-mail ()
|
||||
(interactive)
|
||||
(interrupt-process (get-buffer-process
|
||||
(get-buffer mu4e--update-buffer-name)) t))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Interactive functions
|
||||
(defun mu4e~main-toggle-mail-sending-mode ()
|
||||
|
||||
Reference in New Issue
Block a user