Compare commits

...

2 Commits

View File

@ -453,9 +453,9 @@ languages. Listing [[lst:setup-go][Setup Go programming]] shows how to configur
:CUSTOM_ID: sec:text-faces-or-styles :CUSTOM_ID: sec:text-faces-or-styles
:END: :END:
This setup does not use [[info:emacs#Custom Themes][custom themes (info)]] to avoid endless tweaking, but it This setup does not use [[info:emacs#Custom Themes][custom themes (info)]], but it does a minimal setup of
does a minimal setup of fonts and faces. See the [[https://protesilaos.com/codelog/2020-09-05-emacs-note-mixed-font-heights/][note on mixed font heights in fonts and faces. The [[https://protesilaos.com/codelog/2020-09-05-emacs-note-mixed-font-heights/][note on mixed font heights in Emacs]] for how to setup fonts
Emacs]] for how to setup fonts properly. It boils down to two rules: properly. It boils down to two rules:
1. The height of the default face must be an integer number to make the height a 1. The height of the default face must be an integer number to make the height a
physical quantity. physical quantity.
2. The heights of all other faces must be real numbers to scale those heights 2. The heights of all other faces must be real numbers to scale those heights
@ -694,8 +694,9 @@ for technical information.
;; Handling the *Warnings* buffer like the *compilation* buffer also fails. ;; Handling the *Warnings* buffer like the *compilation* buffer also fails.
;; BUG#70773: Eli tells `(setq delayed-warnings-hook nil)' is better. ;; BUG#70773: Eli tells `(setq delayed-warnings-hook nil)' is better.
;; https://lists.gnu.org/archive/html/bug-gnu-emacs/2024-05/msg00253.html ;; https://lists.gnu.org/archive/html/bug-gnu-emacs/2024-05/msg00253.html
;; Works after setting `warnings-display-at-bottom' to `nil'.
(add-to-list 'display-buffer-alist (add-to-list 'display-buffer-alist
`(,(rx (or "*compilation*")) `(,(rx (or "*Warnings*" "*compilation*"))
display-buffer-no-window display-buffer-no-window
(allow-no-window . t)))) (allow-no-window . t))))
#+end_src #+end_src