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)))))
|
(read (current-buffer)))))
|
||||||
(and (symbolp res) sexp)))))))
|
(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
|
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
|
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."
|
above, keep the indention. Otherwise, indent as with ARGS applied to OLDFUN."
|
||||||
(oldfun &rest args)
|
|
||||||
(let ((init-prev-bol (pos-bol 0)))
|
(let ((init-prev-bol (pos-bol 0)))
|
||||||
(or (save-excursion
|
(or (save-excursion
|
||||||
(when-let* (;; if we on the first line of the buffer, do nothing
|
(when-let* (;; if we on the first line of the buffer, do nothing
|
||||||
|
|||||||
Reference in New Issue
Block a user