mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Merge pull request #65 from meqif/patch-1
Show Rust version in the modeline
This commit is contained in:
commit
900c501e1f
1 changed files with 4 additions and 0 deletions
|
@ -1608,6 +1608,10 @@ mouse-3: Describe current input method")
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(when (and (executable-find "iex") (executable-find "cut") (executable-find "sed"))
|
(when (and (executable-find "iex") (executable-find "cut") (executable-find "sed"))
|
||||||
(setq doom-modeline-env-command "iex --version 2>&1 | cut -d' ' -f2 | sed -n '1p'"))))
|
(setq doom-modeline-env-command "iex --version 2>&1 | cut -d' ' -f2 | sed -n '1p'"))))
|
||||||
|
(add-hook 'rust-mode-hook
|
||||||
|
(lambda ()
|
||||||
|
(when (and (executable-find "rustc") (executable-find "cut") (executable-find "sed"))
|
||||||
|
(setq doom-modeline-env-command "rustc --version 2>&1 | cut -d' ' -f2 | sed -n '1p'"))))
|
||||||
|
|
||||||
|
|
||||||
;; Ensure modeline is inactive when Emacs is unfocused (and active otherwise)
|
;; Ensure modeline is inactive when Emacs is unfocused (and active otherwise)
|
||||||
|
|
Loading…
Reference in a new issue