mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
nit(default): remove refs to doom-point-in-*-functions
These variables were removed ine43d575
. Amend:e43d575caf
This commit is contained in:
@ -270,9 +270,9 @@
|
|||||||
(advice-add #'delete-backward-char :override #'+default--delete-backward-char-a)
|
(advice-add #'delete-backward-char :override #'+default--delete-backward-char-a)
|
||||||
|
|
||||||
;; HACK Makes `newline-and-indent' continue comments (and more reliably).
|
;; HACK Makes `newline-and-indent' continue comments (and more reliably).
|
||||||
;; Consults `doom-point-in-comment-functions' to detect a commented region
|
;; Consults `doom-point-in-comment-p' to detect a commented region and uses
|
||||||
;; and uses that mode's `comment-line-break-function' to continue comments.
|
;; that mode's `comment-line-break-function' to continue comments. If
|
||||||
;; If neither exists, it will fall back to the normal behavior of
|
;; neither exists, it will fall back to the normal behavior of
|
||||||
;; `newline-and-indent'.
|
;; `newline-and-indent'.
|
||||||
;;
|
;;
|
||||||
;; We use an advice here instead of a remapping because many modes define
|
;; We use an advice here instead of a remapping because many modes define
|
||||||
@ -281,9 +281,7 @@
|
|||||||
;; on a case by case basis.
|
;; on a case by case basis.
|
||||||
(defadvice! +default--newline-indent-and-continue-comments-a (&rest _)
|
(defadvice! +default--newline-indent-and-continue-comments-a (&rest _)
|
||||||
"A replacement for `newline-and-indent'.
|
"A replacement for `newline-and-indent'.
|
||||||
|
Continues comments if executed from a commented line."
|
||||||
Continues comments if executed from a commented line. Consults
|
|
||||||
`doom-point-in-comment-functions' to determine if in a comment."
|
|
||||||
:before-until #'newline-and-indent
|
:before-until #'newline-and-indent
|
||||||
(interactive "*")
|
(interactive "*")
|
||||||
(when (and +default-want-RET-continue-comments
|
(when (and +default-want-RET-continue-comments
|
||||||
|
Reference in New Issue
Block a user