From 45e0be8bc668f4b83aae29655d078b3467d135be Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Mon, 24 Apr 2023 13:21:18 -0600 Subject: [PATCH] Add cl-indentify --- .emacs.d/settings.org | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.emacs.d/settings.org b/.emacs.d/settings.org index 9d08571..36e32fd 100644 --- a/.emacs.d/settings.org +++ b/.emacs.d/settings.org @@ -269,7 +269,15 @@ (add-hook 'slime-repl-mode-hook 'set-up-slime-ac) (eval-after-load "auto-complete" '(add-to-list 'ac-modes 'slime-repl-mode)) - +#+END_SRC +**** cl-indentify +#+BEGIN_SRC emacs-lisp + (defun on-lisp-save-cl-indentify () + (when (eq major-mode 'lisp-mode) + (shell-command + (format "~/.roswell/bin/cl-indentify -r %s" (buffer-file-name))))) + (add-hook 'after-save-hook + #'on-lisp-save-cl-indentify) #+END_SRC *** Elixir #+BEGIN_SRC emacs-lisp