editorconfig / editorconfig-emacs

EditorConfig plugin for Emacs
https://editorconfig.org
GNU General Public License v3.0
748 stars 107 forks source link

`clojure-mode` support on `editorconfig-indentation-alist` #337

Open soyPabloG opened 6 months ago

soyPabloG commented 6 months ago

Hello, I'm recently installed copilot.el and tried to use it with Clojure, but I'm getting spammed with the following error:

⛔ Warning (copilot): copilot--infer-indentation-offset found no mode-specific indentation offset.

The problem is that it uses editorconfig-indentation-alist to infer indentation offset. I searched on the editorconfig-indentation-alist but it is missing.

Any idea of how can I get the indentation offset? I don't have much experience with emacs.

xuhdev commented 6 months ago

Do you mean this:

https://github.com/editorconfig/editorconfig-emacs/blob/b120ccdcd853205e46ccc2f296055d5b09c7f9a0/editorconfig.el#L181

soyPabloG commented 6 months ago

Yes

10sr commented 6 months ago

It seems clojure-mode does not define a variable for indentation offset number, so IMO it cannot be solved by editorconfig plugin. I think this issue should be handled by copilot.el team, and an issue for this has already been filed: https://github.com/copilot-emacs/copilot.el/issues/312