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

前端 未结 2 1531
遇见更好的自我
遇见更好的自我 2020-12-30 07:46

I hate bold text while coding. Is it possible to disable bold text (and underline) in every single file and emacs\'s interface?

相关标签:
2条回答
  • 2020-12-30 07:49

    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:

    alt text

    0 讨论(0)
  • 2020-12-30 07:59

    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))
    
    0 讨论(0)
提交回复
热议问题