如何在 emacs 中使用带有 editorconfig 的 SLIME 缩进

Tha*_*yne 5 emacs editor common-lisp slime indentation

我将editorconfig与 emacs 插件一起使用。

我喜欢它,特别是因为它可以跨编辑器同步我的偏好,并允许项目特定的设置。但是当我在 emacs 中编辑常见的 lisp 文件时,editorconfig 似乎弄乱了 SLIME 的智能 lisp 特定缩进。即它总是缩进相同的数量,而不是对当前表单使用适当的缩进或对齐方式。

有什么方法可以指定我更喜欢使用 SLIME 缩进而不是 editorconfig 缩进?

另外,有谁知道 editorconfig 如何与智能选项卡交互?

Tha*_*yne 2

emacs 的 editorconfig 中存在错误。现在已经修复了。

为了让它工作,你的 .editorconfig 文件中应该有类似以下内容:

[*.{lisp,asd,el}]
indent_style = space
indent_size = none
tab_width = none
Run Code Online (Sandbox Code Playgroud)