如何在emacs中全局禁用粗体(字体重量)? [英] How to disable bold (font weight) globally in emacs?
本文介绍了如何在emacs中全局禁用粗体(字体重量)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在编码时讨厌粗体文本。可以在每个单个文件和emacs界面中禁用粗体文本(和下划线)?
I hate bold text while coding. Is it possible to disable bold text (and underline) in every single file and emacs's interface?
推荐答案
最简单的方法可能是
(set-face-bold-p 'bold nil)
另一种可能性也是处理下划线的问题,是在运行的Emacs会话中评估以下代码段:
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))
这篇关于如何在emacs中全局禁用粗体(字体重量)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文