mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 19:19:53 +00:00
Fix #31: support input-method.
This commit is contained in:
parent
92b5bf5c79
commit
52243514af
1 changed files with 17 additions and 2 deletions
|
@ -1043,13 +1043,28 @@ See `mode-line-percent-position'.")
|
||||||
((eq tag evil-replace-state-tag) 'doom-modeline-evil-replace-state)))))))
|
((eq tag evil-replace-state-tag) 'doom-modeline-evil-replace-state)))))))
|
||||||
|
|
||||||
|
|
||||||
|
;;
|
||||||
|
;; input method
|
||||||
|
;;
|
||||||
|
|
||||||
|
(doom-modeline-def-segment input-method
|
||||||
|
"The current input method."
|
||||||
|
(cond
|
||||||
|
(current-input-method
|
||||||
|
(concat current-input-method-title " "))
|
||||||
|
((and (bound-and-true-p evil-mode)
|
||||||
|
(bound-and-true-p evil-input-method))
|
||||||
|
(concat
|
||||||
|
(nth 3 (assoc default-input-method input-method-alist))
|
||||||
|
" "))))
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Mode lines
|
;; Mode lines
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(doom-modeline-def-modeline 'main
|
(doom-modeline-def-modeline 'main
|
||||||
'(workspace-number window-number bar evil-state matches " " buffer-info buffer-position " " selection-info)
|
'(workspace-number window-number bar evil-state matches " " buffer-info buffer-position " " selection-info)
|
||||||
'(global buffer-encoding major-mode process vcs flycheck))
|
'(global input-method buffer-encoding major-mode process vcs flycheck))
|
||||||
|
|
||||||
(doom-modeline-def-modeline 'minimal
|
(doom-modeline-def-modeline 'minimal
|
||||||
'(bar matches " " buffer-info)
|
'(bar matches " " buffer-info)
|
||||||
|
@ -1057,7 +1072,7 @@ See `mode-line-percent-position'.")
|
||||||
|
|
||||||
(doom-modeline-def-modeline 'special
|
(doom-modeline-def-modeline 'special
|
||||||
'(window-number bar evil-state matches " " buffer-info-simple buffer-position " " selection-info)
|
'(window-number bar evil-state matches " " buffer-info-simple buffer-position " " selection-info)
|
||||||
'(global buffer-encoding major-mode process flycheck))
|
'(global input-method buffer-encoding major-mode process flycheck))
|
||||||
|
|
||||||
(doom-modeline-def-modeline 'project
|
(doom-modeline-def-modeline 'project
|
||||||
'(window-number bar buffer-default-directory)
|
'(window-number bar buffer-default-directory)
|
||||||
|
|
Loading…
Reference in a new issue