[Emacs] Added minimal width for headers view in mu4e
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d509d8a825
commit
175948c3d9
@ -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, I’d 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
|
||||
|
Loading…
Reference in New Issue
Block a user