diff options
author | Guangxiong Lin <[email protected]> | 2022-03-08 22:24:01 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-03-08 22:24:01 +0800 |
commit | 8b2a66bb700fbd0e0546193c9331e3d3d18f809d (patch) | |
tree | bace20d2fa6e6a2886f164a62c60596c3359c473 | |
parent | a586820f709ac516b06c0a908f429081023118b7 (diff) | |
download | dotfiles-8b2a66bb700fbd0e0546193c9331e3d3d18f809d.tar.gz dotfiles-8b2a66bb700fbd0e0546193c9331e3d3d18f809d.tar.bz2 dotfiles-8b2a66bb700fbd0e0546193c9331e3d3d18f809d.zip |
Add mac input method config (emacs)
-rw-r--r-- | .emacs.d/lisp/init-input-method.el | 7 |
1 files changed, 7 insertions, 0 deletions
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))) |