Mu4e: Reduce instances of font-family in org-msg

This commit is contained in:
TEC 2020-05-24 10:22:43 +08:00
parent fe8e6b2c5f
commit c1a08894eb

View file

@ -1723,35 +1723,35 @@ To make this look a little nicer, we will overwrite the default style.
(theme-color "#2654BF") (theme-color "#2654BF")
(bold '(font-weight . "bold")) (bold '(font-weight . "bold"))
(color `(color . ,theme-color)) (color `(color . ,theme-color))
(table `(,@font (margin-top . "6px") (margin-bottom . "6px") (table `((margin-top . "6px") (margin-bottom . "6px")
(border-left . "none") (border-right . "none") (border-left . "none") (border-right . "none")
(border-top . "2px solid #222222") (border-bottom . "2px solid #222222") (border-top . "2px solid #222222") (border-bottom . "2px solid #222222")
)) ))
(ftl-number `(,@font ,color ,bold (text-align . "left"))) (ftl-number `(,color ,bold (text-align . "left")))
(inline-modes '(asl c c++ conf cpp csv diff ditaa emacs-lisp (inline-modes '(asl c c++ conf cpp csv diff ditaa emacs-lisp
fundamental ini json makefile man org plantuml fundamental ini json makefile man org plantuml
python sh xml)) python sh xml))
(inline-src `((background-color . "rgba(27,31,35,.05)") (inline-src `((background-color . "rgba(27,31,35,.05)")
(border-radius . "3px") (border-radius . "3px")
(padding . ".2em .4em") (padding . ".2em .4em")
(font-size . "90%") (font-size . "90%") ,monospace-font
(margin . 0))) (margin . 0)))
(code-src (code-src
(mapcar (lambda (mode) (mapcar (lambda (mode)
`(code ,(intern (concat "src src-" (symbol-name mode))) `(code ,(intern (concat "src src-" (symbol-name mode)))
,inline-src)) ,inline-src))
inline-modes))) inline-modes)))
`((del nil (,@font (color . "grey") (border-left . "none") `((del nil ((color . "grey") (border-left . "none")
(text-decoration . "line-through") (margin-bottom . "0px") (text-decoration . "line-through") (margin-bottom . "0px")
(margin-top . "10px") (line-height . "11pt"))) (margin-top . "10px") (line-height . "11pt")))
(a nil (,color)) (a nil (,color))
(a reply-header ((color . "black") (text-decoration . "none"))) (a reply-header ((color . "black") (text-decoration . "none")))
(div reply-header ((padding . "3.0pt 0in 0in 0in") (div reply-header ((padding . "3.0pt 0in 0in 0in")
(border-top . "solid #e1e1e1 1.0pt") (border-top . "solid #e1e1e1 1.0pt")
(margin-bottom . "20px"))) (margin-bottom . "20px")))
(span underline ((text-decoration . "underline"))) (span underline ((text-decoration . "underline")))
(li nil (,@font ,line-height (margin-bottom . "0px") (li nil (,line-height (margin-bottom . "0px")
(margin-top . "2px"))) (margin-top . "2px")))
(nil org-ul ((list-style-type . "square"))) (nil org-ul ((list-style-type . "square")))
(nil org-ol (,@font ,line-height (margin-bottom . "0px") (nil org-ol (,@font ,line-height (margin-bottom . "0px")
(margin-top . "0px") (margin-left . "30px") (margin-top . "0px") (margin-left . "30px")
@ -1807,22 +1807,19 @@ To make this look a little nicer, we will overwrite the default style.
(color . "#444d56") (padding . "3px 5px") (display . "inline-block"))) (color . "#444d56") (padding . "3px 5px") (display . "inline-block")))
(div outline-text-4 ((margin-left . "15px"))) (div outline-text-4 ((margin-left . "15px")))
(div outline-4 ((margin-left . "10px"))) (div outline-4 ((margin-left . "10px")))
(h4 nil ((margin-bottom . "0px") (font-size . "11pt") (h4 nil ((margin-bottom . "0px") (font-size . "11pt")))
,font-family))
(h3 nil ((margin-bottom . "0px") (h3 nil ((margin-bottom . "0px")
,color (font-size . "14pt") ,color (font-size . "14pt")))
,font-family))
(h2 nil ((margin-top . "20px") (margin-bottom . "20px") (h2 nil ((margin-top . "20px") (margin-bottom . "20px")
,color (font-size . "18pt") ,color (font-size . "18pt")))
,font-family))
(h1 nil ((margin-top . "20px") (h1 nil ((margin-top . "20px")
(margin-bottom . "0px") ,color (font-size . "24pt") (margin-bottom . "0px") ,color (font-size . "24pt")))
,font-family))
(p nil ((text-decoration . "none") (margin-bottom . "0px") (p nil ((text-decoration . "none") (margin-bottom . "0px")
(margin-top . "10px") (line-height . "11pt") ,font-size (margin-top . "10px") (line-height . "11pt") ,font-size
,font-family (max-width . "100ch"))) (max-width . "100ch")))
(b nil ((font-weight . "500") (color . ,theme-color))) (b nil ((font-weight . "500") (color . ,theme-color)))
(div nil (,@font (line-height . "12pt")))))) (div nil (,@font (line-height . "12pt"))))))
#+END_SRC #+END_SRC
** Org Chef ** Org Chef
Loading after org seems a bit premature. Let's just load it when we try to use Loading after org seems a bit premature. Let's just load it when we try to use