reddit / emacs

nano-emacs

willdvaz · 2022-05-25 16:28
Hi all, I've installed the amazing [nano-emacs](https://github.com/rougier/nano-emacs) from Nicolas Rougier, and I just have a question about the font in latex files: the headings in like \\section{my section} have the same font as regular text (I would have expected them to be in another color or in bold, as with my previous theme): is this normal or did I do something wrong in my installation ? Thanks a lot in advance !
Nicolas-Rougier · 2022-05-25 18:27
I think I did not yet define faces for latex and most probably the default face is used which is not bold. This means you'll have to define the face for latex mode (and then you can make a pull request).
willdvaz · 2022-05-25 21:33
Thanks a lot for your answer !! I realized actually when commenting out “('require nano-defaults) “ in the code copied from nano.el into my .emacs, the behaviour is restablished (bold and larger font for titles, more colors etc): could that mean that maybe nano-defaults overwrites some default fontification which came from auctex out of the box ? (Sorry if what I say don’t make sense, I’m really a beginner in emacs) For now I’m ok with that setting (i.e. commenting out the nano-defaults) but if I get more experienced with emacs, I’d be glad to contribute!
mklsls · 2022-05-25 23:32
FWIW, I have those in my `config.el` for doom-emacs. They look fine for me. ``` (custom-set-faces! ;; latex '(TeX-fold-folded-face :inherit nano-faded) '(TeX-fold-unfolded-face :inherit nano-faded-i) '(font-latex-warning-face :inherit nano-popout) '(font-latex-math-face :inherit nano-salient) '(font-latex-script-char-face :inherit nano-salient) '(font-latex-italic-face :inherit nano-faded) '(font-latex-bold-face :inherit (nano-popout nano-strong)) '(font-latex-sectioning-5-face :inherit nano-strong)) ```
willdvaz · 2022-05-26 07:29
Nice ! Thanks a lot, I’ll give them a try !