mirror of https://github.com/djcb/mu.git
Merge pull request #50 from ranulf/confirm-quit
*mu4e: make quiting-confirmation optional (added variable `mu4e-confirm-quit').
This commit is contained in:
commit
6db3c55991
|
@ -128,6 +128,11 @@ see `mu4e-headers-visible-lines' and
|
|||
view buffer."
|
||||
:group 'mu4e-view)
|
||||
|
||||
(defcustom mu4e-confirm-quit t
|
||||
"Whether to confirm to quit mu4e."
|
||||
:type 'boolean
|
||||
:group 'mu4e)
|
||||
|
||||
;; crypto
|
||||
(defgroup mu4e-crypto nil
|
||||
"Crypto-related settings."
|
||||
|
|
|
@ -82,8 +82,10 @@
|
|||
(defun mu4e-quit()
|
||||
"Quit the mu4e session."
|
||||
(interactive)
|
||||
(when (y-or-n-p (mu4e-format "Are you sure you want to quit?"))
|
||||
(mu4e~stop)))
|
||||
(if mu4e-confirm-quit
|
||||
(when (y-or-n-p (mu4e-format "Are you sure you want to quit?"))
|
||||
(mu4e~stop))
|
||||
(mu4e~stop)))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
|
|
Loading…
Reference in New Issue