I followed this answer and created my minor mode to avoid my keybindings being overridden by any major modes.
So I put this in my init.el:
(define-key my-keys-mode-map (kbd "C-h") 'delete-backward-char)
(define-key my-keys-mode-map (kbd "M-h") 'backward-kill-word)
It is working with everything except when I am in helm-find-files
. While M-h
works, C-h
doesn't. If I press it twice, Help
buffer shows up saying:
^L
Major Mode Bindings Starting With C-h:
key binding
--- -------
C-h C-b helm-send-bug-report-from-helm
^L
Global Bindings Starting With C-h:
key binding
--- -------
How can I disable C-h
in helm-find-files
and keep using my own keybinding?