mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Add an indicator of remote host.
This commit is contained in:
parent
d430859bf2
commit
a7643cf918
1 changed files with 12 additions and 1 deletions
|
@ -1206,12 +1206,23 @@ See `mode-line-percent-position'.")
|
|||
" "))))
|
||||
|
||||
|
||||
;;
|
||||
;; remote host
|
||||
;;
|
||||
|
||||
(doom-modeline-def-segment remote-host
|
||||
"Hostname for remote buffers."
|
||||
(when default-directory
|
||||
(when-let ((host (file-remote-p default-directory 'host)))
|
||||
(concat "@" host))))
|
||||
|
||||
|
||||
;;
|
||||
;; Mode lines
|
||||
;;
|
||||
|
||||
(doom-modeline-def-modeline 'main
|
||||
'(bar workspace-number window-number evil-state god-state ryo-modal-state matches " " buffer-info buffer-position " " selection-info)
|
||||
'(bar workspace-number window-number evil-state god-state ryo-modal-state matches " " buffer-info remote-host buffer-position " " selection-info)
|
||||
'(global input-method buffer-encoding major-mode process vcs flycheck))
|
||||
|
||||
(doom-modeline-def-modeline 'minimal
|
||||
|
|
Loading…
Reference in a new issue