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