diff --git a/init.el b/init.el index 9ee004d..bffd780 100644 --- a/init.el +++ b/init.el @@ -319,7 +319,21 @@ Interactively, force the recompile if called with a prefix." ;; and nicer (use-package adjust-parens - :hook (prog-mode . adjust-parens-mode)) + :hook (prog-mode . adjust-parens-mode) + :config + (defun my/normal-state-lisp-indent-adjust-parens () + "Like `lisp-indent-adjust-parens', but got to first char on line first." + (interactive) + (back-to-indentation) + (lisp-indent-adjust-parens)) + (defun my/normal-state-lisp-dedent-adjust-parens () + "Like `lisp-dedent-adjust-parens', but got to first char on line first." + (interactive) + (back-to-indentation) + (lisp-dedent-adjust-parens)) + (evil-define-key 'normal adjust-parens-mode-map + (kbd "") #'my/normal-state-lisp-indent-adjust-parens + (kbd "") #'my/normal-state-lisp-dedent-adjust-parens)) ;; for when the files are just too large (use-package vlf