所以我是 spacemacs 的新手,并且我的 python 选项卡有问题。我找到了这个stackoverflow问题的解决方案。他解释的场景正是我的 python 层遇到的问题,但我不知道如何应用他给出的解决方案,即:
If that is the case, you can fix the problem by running
(setq-default python-indent-offset 4)
我到底在哪里/如何运行命令“(setq-default python-indent-offset 4)”?我是否将其放入我的 spacemacs 配置中?或者其他地方?
谢谢!
最佳答案
我在通过相关问题(here)输入时找到了这个问题的答案。
诸如此类的命令位于 init.el 配置内部,可通过键入 SPC-f e i 进行访问
希望这对所有 spacemacs 新手有帮助。 (如果我错了或者不完全理解,请随时纠正我)
编辑 1
对于那些好奇的人来说,我的回答只是一些背景信息。命令
(setq-default python-indent-offset 4)
实际上来自 Lisp 编程语言家族。所以spacemacs基本上使用源代码控制的配置。它也可能类似地进入你的 spacemacs 配置(SPC f e d),尽管我相信 init.el 是这种类型设置的正确位置
关于spacemacs - 如何应用 spacemacs 命令(setq-default...),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43811746/