mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Rename doom*newline-and-indent
To doom*newline-indent-and-continue-comments; to better describe what it does.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user