Move newline-and-indent advice outside of after! smartparens

Makes it easier to disable.
This commit is contained in:
Henrik Lissner 2019-07-08 21:36:43 +02:00
parent df56ea5c60
commit c14a4c8818
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

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