From a9cd2d7ed6c2ff5ff327580387120cfa691e712e Mon Sep 17 00:00:00 2001 From: David Morgan Date: Tue, 1 Nov 2022 16:49:22 +0000 Subject: Add aggressive-indent --- .emacs.d/lisp/init-editor.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.emacs.d/lisp/init-editor.el b/.emacs.d/lisp/init-editor.el index cb1fd63..ddc8a0b 100644 --- a/.emacs.d/lisp/init-editor.el +++ b/.emacs.d/lisp/init-editor.el @@ -171,6 +171,19 @@ :diminish :hook (prog-mode . ws-butler-mode)) +(use-package aggressive-indent + :diminish + :config + (unbind-key "C-c C-q" aggressive-indent-mode-map) + ;; don't indent lisp comments + (add-to-list 'aggressive-indent-dont-indent-if + '(and (derived-mode-p 'prog-mode) + (string-match "^\s*;" + (thing-at-point 'line)))) + :hook + (emacs-lisp . aggressive-indent-mode) + (clojure-mode . aggressive-indent-mode)) + (use-package hungry-delete :diminish :hook (prog-mode . turn-on-hungry-delete-mode)) -- cgit 1.4.1-2-gfad0