aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-03-05 01:40:40 +0800
committerGuangxiong Lin <[email protected]>2022-03-05 01:40:40 +0800
commit12eaabda3017f5fa9fc9cba677e946bbea0e1f4f (patch)
tree176a721c3366a9b94651f055988121236a06bab2
parent99d1220b6fafe67cae45beee5a957f235f6fe1c4 (diff)
downloaddotfiles-12eaabda3017f5fa9fc9cba677e946bbea0e1f4f.tar.gz
dotfiles-12eaabda3017f5fa9fc9cba677e946bbea0e1f4f.tar.bz2
dotfiles-12eaabda3017f5fa9fc9cba677e946bbea0e1f4f.zip
Add input method switch for macos (emacs)
-rw-r--r--.emacs.d/lisp/init-input-method.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-input-method.el b/.emacs.d/lisp/init-input-method.el
index 38b09bd..df93015 100644
--- a/.emacs.d/lisp/init-input-method.el
+++ b/.emacs.d/lisp/init-input-method.el
@@ -6,4 +6,14 @@
:config
(fcitx-aggressive-setup)))
+(when *is-a-mac*
+ (use-package sis
+ :ensure t
+ :after (evil)
+ :init
+ (setq sis-english-source "com.apple.keylayout.ABC"
+ sis-other-source "com.apple.inputmethod.SCIM.ITABC")
+ :config
+ (sis-global-respect-mode t)))
+
(provide 'init-input-method)