New doom-delete-backward-functions hook as fallback in doom/delete-backward-char
This commit is contained in:
parent
a94ddd4a58
commit
686ce7b26e
1 changed files with 3 additions and 1 deletions
|
@ -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))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue