Rename doom*newline-and-indent
To doom*newline-indent-and-continue-comments; to better describe what it does.
This commit is contained in:
parent
9684b34389
commit
a9c925c50b
2 changed files with 2 additions and 2 deletions
|
@ -274,7 +274,7 @@ Respects `require-final-newline'."
|
|||
;; Advice
|
||||
|
||||
;;;###autoload
|
||||
(defun doom*newline-and-indent (_orig-fn)
|
||||
(defun doom*newline-indent-and-continue-comments (_orig-fn)
|
||||
"Inserts a newline and possibly indents it. Also continues comments if
|
||||
executed from a commented line; handling special cases for certain languages
|
||||
with weak native support."
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
(advice-add #'delete-backward-char :override #'doom/delete-backward-char)
|
||||
|
||||
;; Makes `newline-and-indent' smarter when dealing with comments
|
||||
(advice-add #'newline-and-indent :around #'doom*newline-and-indent))
|
||||
(advice-add #'newline-and-indent :around #'doom*newline-indent-and-continue-comments))
|
||||
|
||||
|
||||
(when (featurep 'evil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue