[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Determining font weight
From: |
irek |
Subject: |
Re: Determining font weight |
Date: |
Tue, 08 Feb 2022 09:24:14 +0100 |
This is probably what you want. Please note additional optional
attributes in face-attribute function.
;; Store initial width
(setq initial-weight (face-attribute 'font-lock-comment-face :weight nil t))
;; Change face width
(set-face-attribute 'font-lock-comment-face nil :weight 'bold)
;; Restore face width
(set-face-attribute 'font-lock-comment-face nil :weight initial-weight)