From 2b5eb7bd38bcffbdb9d08e3cf0058e81124c9614 Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Sun, 11 Aug 2024 12:47:15 +1200 Subject: [PATCH] refactor: move lisp-indent-offset to a file-local variable The setq expression is kept there to indent scripts and test files properly as well. --- catppuccin-theme.el | 1 + scripts/check-lisp-files.el | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/catppuccin-theme.el b/catppuccin-theme.el index a088efa..3b413f7 100644 --- a/catppuccin-theme.el +++ b/catppuccin-theme.el @@ -1493,6 +1493,7 @@ or `mocha'." ;; Local Variables: ;; indent-tabs-mode: nil +;; lisp-indent-offset: 2 ;; End: ;;; catppuccin-theme.el ends here diff --git a/scripts/check-lisp-files.el b/scripts/check-lisp-files.el index 03bfaf3..38b2166 100644 --- a/scripts/check-lisp-files.el +++ b/scripts/check-lisp-files.el @@ -20,7 +20,6 @@ (dolist (file (append files scripts)) (setq byte-compile-error-on-warn t - indent-tabs-mode nil lisp-indent-offset 2) (unless (byte-compile-file file) (error "byte-compile-file failed (%s)" file))