Hi, there,
Thanks in advance for your help! I'm relatively new to emacs so if you have an tips for how I can debug this kind of thing on my own in the future I'd love to hear your input :)
I have the following code in my .spacemacs file:
(global-set-key (kbd "C-i") 'delete-backward-char)
(global-set-key (kbd "M-i") 'subword-backward-kill)
(global-set-key (kbd "M-I") 'backward-kill-sexp)
When I activate Helm with C-x C-f, I'd like to use M-i, but it doesn't behave as I would expect (more on that below), presumably because Helm has ascribed it a binding it for its own purposes. I attempted to override that as follows:
(with-eval-after-load 'helm
(define-key helm-map (kbd "C-i") 'delete-backward-char) ;; this works
(define-key helm-map (kbd "M-i") 'subword-backward-kill)) ;; this doesn't work
Interestingly, C-i behaves as I would expect but M-i does not; it prints some output that looks like it would come from ls -l or something.
I tried assigning C-i to 'subword-backward-kill and it does indeed execute that commfand, so the issue is not with the function to execute but rather the keystroke.
Does anyone have thoughts on how I can go about binding M-i? Thank you so much!
Sincerely,
Brett
P.S. hope everybody is managing to stay healthy