Fix last commit
This commit is contained in:
4
init.el
4
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
|
||||
|
||||
Reference in New Issue
Block a user