[Emacs] Added minimal width for headers view in mu4e
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Lucien Cartier-Tilet 2020-09-05 19:07:46 +02:00
parent d509d8a825
commit 175948c3d9
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 6 additions and 4 deletions

View File

@ -3228,13 +3228,15 @@
40% of Emacs frame, the rest will be given to emails. As you can see, the
width of the mu4e headers is evaluated each time we enter it, so it can react
to the frame being potentially not the same width than earlier or the window
not taking the entire frame.
not taking the entire frame. It has to have a minimal size though, Id say 80
characters is enough for that.
#+BEGIN_SRC emacs-lisp
(setq mu4e-split-view 'vertical)
(add-hook 'mu4e-view-mode-hook
(add-hook 'mu4e-headers-mode-hook
(lambda ()
(setq mu4e-headers-visible-columns (round (* (window-width)
0.4)))))
(setq mu4e-headers-visible-columns (max 80
(round (* (window-width)
0.4))))))
#+END_SRC
This is the setup I have for my SMTP mail server: I point Emacs SMTP