Move newline-and-indent advice outside of after! smartparens
Makes it easier to disable.
This commit is contained in:
parent
df56ea5c60
commit
c14a4c8818
1 changed files with 3 additions and 3 deletions
|
@ -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))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue