From 269a3fa9d961a343246e6c7becb44e830e7819f4 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Mon, 16 Sep 2024 14:56:20 -0700 Subject: [PATCH] Make the plist indent fixes apply only to elisp mode --- init.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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)))