2

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?

Kohei TAMURA
  • 4,970
  • 7
  • 25
  • 49
user7893856
  • 117
  • 1
  • 7
  • 1
    1. This is a duplicate question, in as much as it is about minibuffer keymaps. 2. However, Isearch uses its own keymap, `isearch-mode-map` - Isearch does *not* use the minibuffer (even though it looks like it does). – Drew Jul 25 '17 at 13:52

0 Answers0