如何在 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屋!
查看全文