indent.erts (Code): Don't modify the global state
* test/lisp/progmodes/java-ts-mode-resources/indent.erts (Code): Use `setq-local` and correspondingly move the remaining assignment after activating the major mode.
This commit is contained in:
parent
beeece4712
commit
5432331a62
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
|||
Code:
|
||||
(lambda ()
|
||||
(setq java-ts-mode-indent-offset 4)
|
||||
(java-ts-mode)
|
||||
(setq indent-tabs-mode nil)
|
||||
(setq-local java-ts-mode-indent-offset 4)
|
||||
(setq-local indent-tabs-mode nil)
|
||||
(indent-region (point-min) (point-max)))
|
||||
|
||||
Point-Char: |
|
||||
|
|
Loading…
Add table
Reference in a new issue