From 177ea4784fb750b89da9e34ca4cca1842455d1ad Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Sat, 11 Apr 2026 22:26:17 -0700 Subject: [PATCH] Fix last commit --- init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 0ab2cee..a61c90a 100644 --- a/init.el +++ b/init.el @@ -2172,11 +2172,11 @@ of the opening paren of the current list." (read (current-buffer))))) (and (symbolp res) sexp))))))) -(defun my/-calculate-indent-better-lists "This function is meant to advise `calculate-lisp-indent'. +(defun my/-calculate-indent-better-lists (oldfun &rest args) + "This function is meant to advise `calculate-lisp-indent'. If the point is on the second line of a list that begins with a symbol and the first expression on that line is lined up with the first symbol in the list above, keep the indention. Otherwise, indent as with ARGS applied to OLDFUN." - (oldfun &rest args) (let ((init-prev-bol (pos-bol 0))) (or (save-excursion (when-let* (;; if we on the first line of the buffer, do nothing