Move delete-backward-char & newline-and-indent advice

To config/default; the only place it is used.
This commit is contained in:
Henrik Lissner 2019-02-22 00:22:43 -05:00
parent 69ed1a4a99
commit acddf6a047
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 113 additions and 118 deletions

View file

@ -105,10 +105,10 @@
;; e) properly delete smartparen pairs when they are encountered, without
;; the need for strict mode.
;; f) do none of this when inside a string
(advice-add #'delete-backward-char :override #'doom/delete-backward-char)
(advice-add #'delete-backward-char :override #'+default*delete-backward-char)
;; Makes `newline-and-indent' continue comments (and more reliably)
(advice-add #'newline-and-indent :around #'doom*newline-indent-and-continue-comments)))
(advice-add #'newline-and-indent :around #'+default*newline-indent-and-continue-comments)))
;;