Function: evil-activate-input-method

evil-activate-input-method is a byte-compiled function defined in evil-core.el.

Signature

(evil-activate-input-method)

Documentation

Enable input method in states with :input-method non-nil.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-core.el
;; input methods should be disabled in non-insertion states
(defun evil-activate-input-method ()
  "Enable input method in states with :input-method non-nil."
  (let (input-method-activate-hook
        input-method-deactivate-hook)
    (when (and evil-local-mode evil-state)
      (setq evil-input-method current-input-method)
      (unless (evil-state-property evil-state :input-method)
        (deactivate-input-method)))))