Emacs Chinese-related Settings
Auto Switch Input Method in Evil
This setting makes it possible to switch input method based on the context of cursor when entering insert mode.
sis
I’m using sis package with this configuration. You may need to install macism if you’re not using railwaycat/emacsmacport. More settings can be found in emacs-smart-input-source.
(sis-ism-lazyman-config
"com.apple.keylayout.US"
"com.apple.inputmethod.SCIM.ITABC")
(sis-global-cursor-color-mode t)
(sis-global-respect-mode t)
(sis-global-context-mode t)
(sis-global-inline-mode t)
fcitx
You can also install fcitx-remote for-osx and use cute-jumper/fcitx.el to do so. As homebrew no longer support some build options, you need to follow the install instructions in the GitHub repository to build fcitx.