From 37085f29769963c441340398e673a316be5190b2 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Mon, 10 Jul 2023 22:20:41 -0400 Subject: Check parens before saving Emacs Lisp files --- init.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 8cd09b9..27bb531 100644 --- a/init.el +++ b/init.el @@ -1201,7 +1201,11 @@ (use-package elisp-mode :straight (:type built-in) :commands (emacs-lisp-mode) - :hook (emacs-lisp-mode . flycheck-mode)) + :hook + (emacs-lisp-mode . flycheck-mode) + (emacs-lisp-mode . (lambda () + (add-hook 'local-write-file-hooks + 'check-parens)))) ;; --------------------------------- -- cgit v1.2.3