From 8b2a66bb700fbd0e0546193c9331e3d3d18f809d Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Tue, 8 Mar 2022 22:24:01 +0800 Subject: Add mac input method config (emacs) --- .emacs.d/lisp/init-input-method.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.emacs.d/lisp') diff --git a/.emacs.d/lisp/init-input-method.el b/.emacs.d/lisp/init-input-method.el index 4d83d51..8c007bc 100644 --- a/.emacs.d/lisp/init-input-method.el +++ b/.emacs.d/lisp/init-input-method.el @@ -11,8 +11,15 @@ :ensure t :after (evil) :init + (setq sis-external-ism "/usr/local/bin/macism") (setq sis-english-source "com.apple.keylayout.ABC" sis-other-source "com.apple.inputmethod.SCIM.ITABC") + (setq sis-do-set + (lambda (source) (start-process "set-input-source" nil + sis-external-ism source))) + (setq sis-do-get + (lambda () (start-process "get-input-source" nil + sis-external-ism))) :config (sis-global-respect-mode t) (sis-global-context-mode t))) -- cgit v1.2.3