I use C-h as an alias for delete-backward-char
everywhere.
But when I do isearch it exits the search instead of deleting the character before the cursor.
I tried binding C-h in isearch maps, but that didn't work:
(define-key minibuffer-local-isearch-map (kbd "C-h") 'delete-backward-char)
(define-key isearch-mode-map (kbd "C-h") 'delete-backward-char)
Character gets deleted, but it is deleted in the buffer, not in the isearch prompt.
Is there a way to rebind C-h so it works in isearch prompt?