As seen below, special words such as functions, types... are rendered with bold font. But the remaining part of the code is not bold. I want to change this behavior.
How can I do this? Any idea?
Thanks in advance...
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
You were missing a parameter when calling
set-face-attribute. Also, the value for weight is a symbol and not a string.
(set-face-attribute 'font-lock-type-face nil :weight 'normal)
Here is a list of the
font-lock faces: https://www.gnu.org/software/emacs/manual/html_node/elisp/Faces-for-Font-Lock.html.
However, if you simply want to un-boldify everything try the following.
(mapc (lambda (face) (when (eq (face-attribute face :weight) 'bold) (set-face-attribute face nil :weight 'normal))) (face-list))