(defun rime-switch-simplify-and-traditional ()
(interactive)
(if (rime-lib-get-option "zh_trad")
(progn
(rime-lib-set-option "zh_trad" nil)
(message "简体已就绪"))
(rime-lib-set-option "zh_trad" t)
(message "繁体已就绪")))
(map! :map rime-active-mode-map
:desc "Rime switch trad/simp"
:leader
:nvie "ts"
'rime-switch-simplify-and-traditional)
doom emacs