]> git.eshelyaron.com Git - emacs.git/commit
(editorconfig--should-set): Eliminate `lisp-indent-offset` special case
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 12 Jun 2024 22:05:43 +0000 (18:05 -0400)
committerEshel Yaron <me@eshelyaron.com>
Fri, 21 Jun 2024 18:59:58 +0000 (20:59 +0200)
commitd60d4a94f79574fe1b16698458c1f7367bae8323
tree2117ec8f613e63b11ae5c5c88afc72db6e60ca8b
parent0b623f0cb1c2a355e919b786b2d493ec0dd68eb7
(editorconfig--should-set): Eliminate `lisp-indent-offset` special case

Instead of treating `lisp-indent-offset` specially in
`editorconfig--should-set` (to obey `editorconfig-lisp-use-default-indent`),
use a new function `editorconfig-set-indentation-lisp-mode`
for Lisp modes.

* lisp/editorconfig.el (editorconfig--should-set): Remove `size` argument.
(editorconfig-set-indentation): Adjust calls accordingly.
(editorconfig-set-indentation-lisp-mode): New function.
(editorconfig-indentation-alist): Use it.

(cherry picked from commit 25523847e7931de1f0ee638d2a8847d979fdb496)
lisp/editorconfig.el