drupal-mode icon indicating copy to clipboard operation
drupal-mode copied to clipboard

Make c-default-style local

Open xendk opened this issue 9 years ago • 1 comments

While trying to track down my "somehow c-basic-indent is always 2 per default in non-Drupal php buffers", I notice we fiddle with c-default-style:

https://github.com/arnested/drupal-mode/blob/develop/drupal-mode.el#L351

The side effect of this is that customize says it's modified outside of customize (which is true). I'm not aware of any "make customize suggest this change to a variable", so wouldn't the next best thing be setting it to be buffer local (assuming that works)?

xendk avatar Oct 01 '16 20:10 xendk

Dammit Jim!

Should check on what editorconfig-emacs does, it's basically doing the same thing for all kinds of file types.

And what should happen if one has an .editorconfig in a Drupal project that specifies 4 spaces?

xendk avatar Feb 09 '21 23:02 xendk