aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-input-method.el
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-03-08 22:24:01 +0800
committerGuangxiong Lin <[email protected]>2022-03-08 22:24:01 +0800
commit8b2a66bb700fbd0e0546193c9331e3d3d18f809d (patch)
treebace20d2fa6e6a2886f164a62c60596c3359c473 /.emacs.d/lisp/init-input-method.el
parenta586820f709ac516b06c0a908f429081023118b7 (diff)
downloaddotfiles-8b2a66bb700fbd0e0546193c9331e3d3d18f809d.tar.gz
dotfiles-8b2a66bb700fbd0e0546193c9331e3d3d18f809d.tar.bz2
dotfiles-8b2a66bb700fbd0e0546193c9331e3d3d18f809d.zip
Add mac input method config (emacs)
Diffstat (limited to '.emacs.d/lisp/init-input-method.el')
-rw-r--r--.emacs.d/lisp/init-input-method.el7
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)))