@goumao
请教个问题, 在Macos Emacs Mac Port 使用smart-input-source, 切换到中文之后, 光标闪烁一下之后就切换回英文, 想请问下怎么解决.
Emacs version: GNU Emacs 27.2
配置
(use-package sis
:ensure t
;; :hook
;; enable the /follow context/ and /inline region/ mode for specific buffers
;; (((text-mode prog-mode) . sis-context-mode)
;; ((text-mode prog-mode) . sis-inline-mode))
:config
;; For Linux
(when (ramsay/linux-p)
(sis-ism-lazyman-config "1" "2" 'fcitx5))
;; For MacOS
(when (ramsay/mac-os-p)
(sis-ism-lazyman-config
;; English input source may be: "ABC", "US" or another one.
;; "com.apple.keylayout.ABC"
"com.apple.keylayout.US"
;; Other language input source: "rime", "sogou" or another one.
;; "im.rime.inputmethod.Squirrel.Rime"
"com.sogou.inputmethod.sogou.wubi"))
;; enable the /cursor color/ mode
(sis-global-cursor-color-mode t)
;; enable the /respect/ mode
(sis-global-respect-mode t)
;; enable the /context/ mode for all buffers
(sis-global-context-mode t)
;; enable the /inline english/ mode for all buffers
(sis-global-inline-mode t)
)
(use-package sis
;; :hook
;; enable the /follow context/ and /inline region/ mode for specific buffers
;; (((text-mode prog-mode) . sis-context-mode)
;; ((text-mode prog-mode) . sis-inline-mode))
:config
;; For MacOS
(sis-ism-lazyman-config
;; English input source may be: "ABC", "US" or another one.
"com.apple.keylayout.ABC"
;; "com.apple.keylayout.US"
"com.apple.keylayout.Pinyin - simplified"
;; Other language input source: "rime", "sogou" or another one.
;; "im.rime.inputmethod.Squirrel.Rime"
;; "com.sogou.inputmethod.sogou.pinyin"
)
;; enable the /cursor color/ mode
(sis-global-cursor-color-mode t)
;; enable the /respect/ mode
(sis-global-respect-mode t)
;; enable the /context/ mode for all buffers
(sis-global-context-mode t)
;; enable the /inline english/ mode for all buffers
(sis-global-inline-mode t)
)