开发者

How to disable bold (font weight) globally in emacs?

开发者 https://www.devze.com 2022-12-17 11:46 出处:网络
I hate bold text while coding. Is it possible to disable bold text (and underline) in every single file and emacs\'s interface开发者_运维百科?The easiest way is probably

I hate bold text while coding. Is it possible to disable bold text (and underline) in every single file and emacs's interface开发者_运维百科?


The easiest way is probably

(set-face-bold-p 'bold nil)

Another possibility, which also deals with underlines, would be to evaluate the following snippet in a running Emacs session:

 (mapc
  (lambda (face)
    (set-face-attribute face nil :weight 'normal :underline nil))
  (face-list))


If you are using Terminal.app, you can also go into your Preferences->Settings. For your current settings, go to the Text group and simply uncheck "Use bold fonts." Screenshot below:

How to disable bold (font weight) globally in emacs?

0

精彩评论

暂无评论...
验证码 换一张
取 消