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

余生颓废 提交于 2019-12-18 12:22:48

问题


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


回答1:


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))



回答2:


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:



来源:https://stackoverflow.com/questions/2064904/how-to-disable-bold-font-weight-globally-in-emacs

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!