2014-11-17 22 views
4

我使用editorconfig和emacs插件。如何使用emacs中的editorconfig使用SLIME縮進

我喜歡它,尤其是因爲它可以在編輯器中同步我的偏好,並允許項目特定的設置。但是,當我編輯emacs中的常見lisp文件時,editorconfig似乎弄糟了SLIME的智能lisp特定縮進。即它總是縮進相同的量,而不是使用當前表單的適當縮進或對齊。

有什麼方法可以指定我更喜歡在editorconfig縮進上使用SLIME縮進嗎?

另外,有沒有人知道editorconfig如何與智能標籤交互?

+1

這聽起來像一個overlookekd功能。你可以在問題跟蹤器上提交一個錯誤嗎? https://github.com/editorconfig/editorconfig/issues。謝謝! –

回答

2

emacs的editorconfig中存在一個bug。它現在已經修復。

爲了它的工作,你應該有這樣的事情在你的.editorconfig文件中的以下內容:

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