diff --git a/init.el b/init.el index 96a4be4..526893e 100644 --- a/init.el +++ b/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)))