mu4e: auto-enable logging when pressing '$'

This commit is contained in:
Dirk-Jan C. Binnema 2020-06-08 23:06:49 +03:00
parent 0b427e5ee8
commit e37486fb5a
1 changed files with 1 additions and 0 deletions

View File

@ -1050,6 +1050,7 @@ mu4e logs some of its internal workings to a log-buffer. See
(defun mu4e-show-log ()
"Visit the mu4e debug log."
(interactive)
(unless mu4e-debug (mu4e-toggle-logging))
(let ((buf (get-buffer mu4e~log-buffer-name)))
(unless (buffer-live-p buf)
(mu4e-warn "No debug log available"))