Make the plist indent fixes apply only to elisp mode

This commit is contained in:
Alexander Rosenberg 2024-09-16 14:56:20 -07:00
parent 7ebb1e095e
commit 269a3fa9d9
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -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
(if (and (eq major-mode 'emacs-lisp-mode)
(save-excursion
(beginning-of-line)
(my/lisp-inside-plist-p))
(my/lisp-inside-plist-p)))
(let ((lisp-indent-offset 1))
(apply oldfun args))
(apply oldfun args)))