From 12eaabda3017f5fa9fc9cba677e946bbea0e1f4f Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 5 Mar 2022 01:40:40 +0800 Subject: Add input method switch for macos (emacs) --- .emacs.d/lisp/init-input-method.el | 10 ++++++++++ 1 file changed, 10 insertions(+) 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) -- cgit v1.2.3