mu4e/mu4e-utils: only set so-long-mode once

Ideally we should separate the log buffer creation code so this van be
done a bit more cleanly. For now however only set so-long-mode once
otherwise you end up spamming the messages with constant:

  Changed to so-long-mode (from fundamental-mode) on account of line length.  C-c C-c to revert. [36 times]

As the messages keep rolling in.
This commit is contained in:
Alex Bennée 2020-06-29 10:23:39 +01:00
parent 556b898e4d
commit c074e7ea3b
1 changed files with 2 additions and 1 deletions

View File

@ -1009,7 +1009,8 @@ either 'to-server, 'from-server or 'misc. This function is meant for debugging."
(view-mode)
(when (fboundp 'so-long-mode)
(eval '(so-long-mode)))
(unless (eq major-mode 'so-long-mode)
(eval '(so-long-mode))))
(setq buffer-undo-list t)
(let* ((inhibit-read-only t)