Better electric-indent uninhibiter

Will now work in C modes as well as Csharp, Java and Python; possibly
others that forcibly set electric-indent-inhibit.
This commit is contained in:
Henrik Lissner 2019-02-27 15:21:04 -05:00
parent aa9c4f63ed
commit 6fc7b8c1c4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 1 additions and 2 deletions

View file

@ -17,6 +17,7 @@ Enables `electric-indent-local-mode' in MODES.
(unintern fn nil))
((fset fn
(lambda ()
(setq-local electric-indent-inhibit nil)
(cl-destructuring-bind (&key chars words) plist
(electric-indent-local-mode +1)
(if chars (setq electric-indent-chars chars))