I have what some might consider a pretty spastic typing workflow, where I've remapped 'Alt Gr' to Caps Lock and bound a bunch of symbols I've never in my life typed (ł€®þ←↓→œþæøłĸŋđðߪ«»©“”nµ etc) to do more useful stuff.
This works great, except when the minibuffer opens for search+replace, open file, or something that requires kb input. Say I want Emacs to kill a buffer (ctrl+x, k), but hit Ctrl+s instead which opens minibuffer for incremental search. Now I can just press (Ctrl+x, k) anyway, which executes kill-buffer as expected.
But say I rebound kill-buffer, i.e.
(global-set-key (kbd "ĸ") 'kill-buffer) ;; altgr + k
If I do this inside the incremental search mini-buffer, Emacs simply inserts a ĸ. I have to cancel incremental search before I can access my keybinding. Is there a way around this?