New doom-delete-backward-functions hook as fallback in doom/delete-backward-char

This commit is contained in:
Henrik Lissner 2018-03-12 12:42:26 -04:00
parent a94ddd4a58
commit 686ce7b26e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -207,7 +207,9 @@ possible, or just one char if that's not possible."
(sp-insert-pair op)))
((and (bolp) (doom-surrounded-p pair nil 'balanced))
(delete-region beg end)
(sp-insert-pair op))
(sp-insert-pair op)
t)
((run-hook-with-args-until-success 'doom-delete-backward-functions))
((doom/backward-delete-whitespace-to-column)))))))
;; Otherwise, do simple deletion.
(t (delete-char (- n) killflag))))