editorconfig / editorconfig-emacs

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

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

Open soyPabloG opened 1 month ago

soyPabloG commented 1 month 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 1 month ago

Do you mean this:

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

soyPabloG commented 1 month ago

Yes

10sr commented 3 weeks 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