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:
parent
aa9c4f63ed
commit
6fc7b8c1c4
2 changed files with 1 additions and 2 deletions
|
@ -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))
|
||||
|
|
|
@ -71,8 +71,6 @@ compilation database is present in the project.")
|
|||
(add-hook 'c-mode-common-hook #'rainbow-delimiters-mode)
|
||||
(add-hook! '(c-mode-hook c++-mode-hook) #'+cc|fontify-constants)
|
||||
|
||||
(setq-hook! 'c-mode-common-hook electric-indent-inhibit nil)
|
||||
|
||||
;; Custom style, based off of linux
|
||||
(unless (assoc "doom" c-style-alist)
|
||||
(push '("doom"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue