-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Info title faces fixed vs variable pitch #29
Comments
Hello Peter!
In such cases, the easiest way is to modify the faces directly. The (defun my-modus-themes-custom-faces ()
(modus-themes-with-colors
(custom-set-faces
`(info-menu-header ((,class :inherit (bold variable-pitch))))
`(info-title-1 ((,class :inherit (bold variable-pitch) :height 1.2 :foreground ,fg-main)))
`(info-title-2 ((,class :inherit (bold variable-pitch) :height 1.2 :foreground ,fg-special-warm)))
`(info-title-3 ((,class :inherit (bold variable-pitch) :height 1.2 :foreground ,fg-special-cold)))
`(info-title-4 ((,class :inherit (bold variable-pitch) :height 1.0 :foreground ,fg-special-mild))))))
(add-hook 'modus-themes-after-load-theme-hook #'my-modus-themes-custom-faces) Please give it a try and let me know if this is the desired result. You
This is an interesting idea, though I expect it would greatly complicate For reference, note that all heading-related options are part of a |
Thanks Prot, that helped and I was able to get what I wanted with a little tweaking.
|
Excellent! I will keep this issue open until the next stable release of the themes. Just in case someone needs to review this. |
Thanks! I found that an explicit call to the "hooked" function is required. My
|
Hi Prot!
With Modus themes, the Info title faces become fixed pitch and regular height by default. That is surprising, because the default pitch and height choices work well to achieve a rather pleasant presentation of Info documents. It is one of the rare places where variable pitch is mixed with fixed pitch out of the box.
I would like to keep it that way. Is there an easy way to achieve that without modifying headline scaling and pitch across the board? I don't want to set modus-themes-variable-pitch-headings=t mainly because I view org files more as source/working documents that may optionally get exported to a presentation format like PDF, HTML (or Info for that matter).
I can see some hacky ways of undoing what modus-themes have done to info-title-x faces. Before I do that, would you consider adding an option or a new value (e.g. modus-themes-variable-pitch-headings=default) to keep the info-title faces variable pitch with scaling? Or, more generally, provide a configurable list of faces to exclude from modification by modus-themes?
Thanks!
Peter
The text was updated successfully, but these errors were encountered: