Compare commits

...

2 Commits

Author SHA1 Message Date
Lucien Cartier-Tilet 175948c3d9
[Emacs] Added minimal width for headers view in mu4e
continuous-integration/drone/push Build is passing Details
2020-09-05 19:07:46 +02:00
Lucien Cartier-Tilet d509d8a825
[Polybar] Fixed issue with code generation 2020-09-05 19:07:18 +02:00
2 changed files with 10 additions and 8 deletions

View File

@ -239,20 +239,20 @@
#+NAME: font-ws-config
#+HEADER: :var text="font"
#+BEGIN_SRC emacs-lisp :var table=fonts-polybar :cache yes
#+BEGIN_SRC emacs-lisp :var table=fonts-polybar[,1:2] :cache yes
(setq counter 0)
(mapconcat (lambda (font)
(setq counter (+ 1 counter))
(format "%s-%d = %s;%s"
text
(- counter 1)
(nth 1 font)
(nth 2 font)))
(nth 0 font)
(nth 1 font)))
table
"\n")
#+END_SRC
#+RESULTS[567cfb5e5a0bdfb0eca90846c8292b7d3fd585ea]: font-ws-config
#+RESULTS[53fd99d75f6b08e96288fd2a62b455d7ef8b1754]: font-ws-config
: font-0 = Fira Sans Book:style=Book:pixelsize=10;1
: font-1 = IPAMincho:style=regular:pixelsize=6;0
: font-2 = unifont:fontformat=truetype:size=6:antialias=false;0

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