▲alstjr7375 2022-04-22 | parent | favorite | on: Emacs Configuration Generator(emacs.amodernist.com)커스텀하면 가능합니다. (use-package evil :commands evil-mode :hook ;; For IME (normal-state-entry . ime-to-en ) (insert-state-entry . ime-to-prev) (emacs-state-entry . ime-to-prev) :init ;; Natural IME (defvar prev-input-method current-input-method "Remember prev input method") (defun ime-to-en () (setq prev-input-method current-input-method) (set-input-method "ucs")) (defun ime-to-prev () (set-input-method prev-input-method)) (evil-mode 1) ) 같은 식으로요. ▲alstjr7375 2022-04-22 [-]붙여넣기 하니 코드 인덴트가 깨지는데, 저는 저런식으로 커스텀해서 쓰고 있어요. 답변달기
커스텀하면 가능합니다.
(use-package evil
:commands evil-mode
:hook ;; For IME
(normal-state-entry . ime-to-en )
(insert-state-entry . ime-to-prev)
(emacs-state-entry . ime-to-prev)
:init
;; Natural IME
(defvar prev-input-method current-input-method "Remember prev input method")
(defun ime-to-en ()
(setq prev-input-method current-input-method)
(set-input-method "ucs"))
(defun ime-to-prev ()
(set-input-method prev-input-method))
(evil-mode 1)
)
같은 식으로요.