By using toggle-input-method
, I can disable input method when that is active.
But sometimes I just want to disable it regardless the input method status. I couldn't find the function for it. How can I do it?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityM-x find-function toggle-input-method
to read its source code,
(defun toggle-off-input-method ()
(interactive)
(if current-input-method (deactivate-input-method)))
toggle-input-method
disables it.(deactivate-input-method)
is what the toggle command calls when it disables it. That's a plain function rather than a command; but provided it's safe to call at any time, you could write a little wrapper command for it if you particularly want one.disable
is not fit, right? Thanks for advice.