mirror of
https://github.com/vale981/doom-modeline
synced 2025-03-04 17:01:39 -05:00
[Feature] Support rime input method.
This commit is contained in:
parent
0642f71071
commit
671a640a19
1 changed files with 9 additions and 1 deletions
|
@ -189,6 +189,8 @@
|
|||
(declare-function rcirc-short-buffer-name 'rcirc)
|
||||
(declare-function rcirc-switch-to-server-buffer 'rcirc)
|
||||
(declare-function rcirc-window-configuration-change 'rcirc)
|
||||
(declare-function rime--should-enable-p 'rime)
|
||||
(declare-function rime--should-enable-p 'rime)
|
||||
(declare-function symbol-overlay-assoc 'symbol-overlay)
|
||||
(declare-function symbol-overlay-get-list 'symbol-overlay)
|
||||
(declare-function symbol-overlay-get-symbol 'symbol-overlay)
|
||||
|
@ -1646,7 +1648,13 @@ and `xha-fly-kyes', etc."
|
|||
(doom-modeline-spc)))
|
||||
(t ""))
|
||||
'face (if (doom-modeline--active)
|
||||
'doom-modeline-buffer-major-mode
|
||||
(if (and (bound-and-true-p rime-mode)
|
||||
(equal current-input-method "rime"))
|
||||
(if (and (rime--should-enable-p)
|
||||
(not (rime--should-inline-ascii-p)))
|
||||
'doom-modeline-buffer-major-mode
|
||||
'doom-modeline-buffer-minor-mode)
|
||||
'doom-modeline-buffer-major-mode)
|
||||
'mode-line-inactive)
|
||||
'help-echo (concat
|
||||
"Current input method: "
|
||||
|
|
Loading…
Add table
Reference in a new issue