Make the plist indent fixes apply only to elisp mode
This commit is contained in:
parent
7ebb1e095e
commit
269a3fa9d9
5
init.el
5
init.el
@ -1048,9 +1048,10 @@ COMMAND and COMINT are like `compile'."
|
|||||||
"This function is meant to advise `calculate-lisp-indent'.
|
"This function is meant to advise `calculate-lisp-indent'.
|
||||||
It calls OLDFUN with ARGS in such an environment as to prevent the default
|
It calls OLDFUN with ARGS in such an environment as to prevent the default
|
||||||
indentation of plists."
|
indentation of plists."
|
||||||
(if (save-excursion
|
(if (and (eq major-mode 'emacs-lisp-mode)
|
||||||
|
(save-excursion
|
||||||
(beginning-of-line)
|
(beginning-of-line)
|
||||||
(my/lisp-inside-plist-p))
|
(my/lisp-inside-plist-p)))
|
||||||
(let ((lisp-indent-offset 1))
|
(let ((lisp-indent-offset 1))
|
||||||
(apply oldfun args))
|
(apply oldfun args))
|
||||||
(apply oldfun args)))
|
(apply oldfun args)))
|
||||||
|
Loading…
Reference in New Issue
Block a user