2017-10-21 161 views

回答

0

可以在問題使用方式掛接爲每種模式要麼設置default-input-method(與C- \切換),在該模式下的緩衝區:

(add-hook 'emacs-lisp-mode-hook 'my-emacs-lisp-mode-hook) 
(defun my-emacs-lisp-mode-hook() 
    "Custom behaviours for `emacs-lisp-mode'." 
    (setq-local default-input-method "latin-1-prefix")) 

或繼續前進,激活自動輸入法:

(add-hook 'emacs-lisp-mode-hook 'my-emacs-lisp-mode-hook) 
(defun my-emacs-lisp-mode-hook() 
    "Custom behaviours for `emacs-lisp-mode'." 
    (activate-input-method "latin-1-prefix")) 

參見How to set a specific input method to a file

+0

謝謝你的回答! –

相關問題