reddit / emacs

Per buffer theme-headings for ef and modus themes

Kwelty ยท 2022-10-12 10:17
Hi, So I use both `ef-themes` and `modus-themes` by Prots as my themes, and I really like the fact that we can customize the org-mode headings by level. This is done with this configuration (from `ef-themes` manual) (setq ef-themes-headings ; read the manual's entry or the doc string '((0 . (variable-pitch light 1.9)) (1 . (variable-pitch light 1.8)) (2 . (variable-pitch regular 1.7)) (3 . (variable-pitch regular 1.6)) (4 . (variable-pitch regular 1.5)) (5 . (variable-pitch 1.4)) ; absence of weight means `bold' (6 . (variable-pitch 1.3)) (7 . (variable-pitch 1.2)) (t . (variable-pitch 1.1)))) As far as I understand, we can only configure 8 level, I thought that the last line would set the themes for every subsequent level, but this is not the case in my experience. When I create a ninth level heading, it goes back to the style of the first level. This make it weird and not really attractive with file with many levels of subheadings. ​ I don't know if we can overcome this limitation, if so I would be interested in knowing how. My second thought was to disable the theming in a specific buffer. But I wasn't able to do it by making the variable local. Is there a way to do that ?