【问题标题】:How to use SLIME indentation with editorconfig in emacs如何在 emacs 中使用带有 editorconfig 的 SLIME 缩进
【发布时间】:2015-01-14 03:42:36
【问题描述】:

我在 emacs 插件中使用editorconfig

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

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

另外,有谁知道 editorconfig 如何与智能标签交互?

【问题讨论】:

标签: emacs editor common-lisp indentation slime


【解决方案1】:

emacs 的 editorconfig 中有一个错误。现在已修复。

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

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

【讨论】:

    猜你喜欢
    • 2011-05-24
    • 1970-01-01
    • 2012-09-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多