I use different input methods in different buffers. I would like to have
M-x and generally any minibuffer input automatically use the input method of the buffer I am currently working in. How can I do this?
Right now, I have the following:
(add-hook 'coq-mode-hook (lambda () (set-input-method "math"))) (add-hook 'minibuffer-setup-hook (lambda () (set-input-method "math")))
So, I automatically get the
math input method when working on Coq files, but I always have the
math input method in the minibuffer. I'd rather only use
math in the minibuffer if I am currently editing a Coq file.