如何在Emacs中使用editorconfig和SLIME缩进

5
我使用emacs插件与editorconfig
我很喜欢它,特别是因为它可以在编辑器之间同步我的首选项,并允许项目特定的设置。但是当我在emacs中编辑common lisp文件时,editorconfig似乎会捣乱SLIME的智能lisp特定缩进。即它总是使用相同的缩进量而不是针对当前表单使用适当的缩进或对齐方式。
有没有办法指定我希望使用SLIME缩进而不是editorconfig缩进?
此外,是否有人知道editorconfig如何与smart-tabs交互?

1
这似乎是一个被忽视的功能。你能在问题跟踪器上提交一个错误报告吗?https://github.com/editorconfig/editorconfig/issues。谢谢! - Trey Hunner
1个回答

2

编辑器配置文件在emacs中存在一个错误,现已修复。

为了使其正常工作,您应该在您的.editorconfig文件中添加以下内容:

[*.{lisp,asd,el}]
indent_style = space
indent_size = none
tab_width = none

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接