I've installed smex
through MELPA as a replacement for the default M-x (execute-extended-command
). The issue is that in smex
, certain global keybindings don't work. For instance, C-h should work as backspace, yet in smex
it's still bound to default help
.
(global-set-key (kbd "C-h") 'delete-backward-char)
Any idea why the above global-set-key
might not work in smex
, while it does elsewhere (in minibuffer, eshell, etc.)?
Addendum to Jesse's answer
When using ido-vertical-mode
one should also rebind M-p
:
(defun ido-vertical-define-keys ()
(define-key ido-completion-map (kbd "C-n") 'ido-next-match)
(define-key ido-completion-map (kbd "C-p") 'ido-prev-match)
(define-key ido-completion-map (kbd "M-p") 'previous-history-element))