gpt4 book ai didi

python - Emacs 中的颜色 Python 关键字参数

转载 作者:太空宇宙 更新时间:2023-11-04 04:59:54 25 4
gpt4 key购买 nike

是否可以在 emacs 中为 Python 关键字参数着色?

例如,Github 和 PyCharm 是这样做的:

如何在 Emacs 中获得相同的行为?是否存在我可以为此配置的face

以防万一,我使用的是 material 主题。

最佳答案

自 emacs 22.1 及更高版本(根据 this 文档)起,语法高亮应该是内置的并且默认打开。似乎 font-lock-mode 以某种方式为您关闭了。

试试 M-x font-lock-mode

对于我来说, Material 主题(并且不涉及其他包)看起来像是禁用的:

font-lock-mode disabled

当我启用它时:

font-lock-mode enabled

关于python - Emacs 中的颜色 Python 关键字参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46003307/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com