在 Emacs 中禁用斜体?
我真的很想在 Emacs 中禁用斜体样式。
在这篇文章中解释了如何禁用粗体并下划线,但不是斜体。
有谁知道该怎么做?
使用制表符完成,我可以看到我有这些可用的
set-face-background set-face-background-pixmap
set-face-font set-face-foreground
set-face-inverse-video-p set-face-stipple
set-face-underline set-face-underline-p
I would really like to have the italic style disabled in Emacs.
In this post it is explained how to disable bold and underline, but not italic.
Does anyone know how to do that?
Using tab-completion, I can see I have these available
set-face-background set-face-background-pixmap
set-face-font set-face-foreground
set-face-inverse-video-p set-face-stipple
set-face-underline set-face-underline-p
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
它实际上以非常相似的方式完成:
请参阅该函数的文档以获取更多详细信息(Ch f set-face-italic-p)
It's actually done in a very similar manner:
Refer to the function's documentation for further details(C-h f set-face-italic-p)
自 emacs 24.4 起:
Since emacs 24.4:
将
slant
属性更改为“正常”。一个丑陋的黑客(错误或功能?)是使用没有斜体的字体,例如 Terminus。这就是我用的。我有时将斜体设置为从可变间距而不是默认继承,并且当字体没有倾斜版本时会创建斜体。
Change the
slant
property to "normal."An ugly hack (bug or feature?) is to use a font that has no italic, like Terminus. That's what I use. I have sometimes set italic to inherit from variable-pitch instead of default and that creates an italic when the font has no slanted version.
emacs 25.x 在这里:
有时上面的方法不起作用,然后尝试这些额外的命令:
emacs 25.x here:
Sometimes the above does not work, then try these extra commands: