From 86658d9f72b66cd528e9756ab035fc51693564e3 Mon Sep 17 00:00:00 2001 From: akash-akya Date: Wed, 22 Aug 2018 23:50:50 +0530 Subject: [PATCH] Show elixir version in the modeline --- doom-modeline.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doom-modeline.el b/doom-modeline.el index 9a9ca48..6411a48 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -1122,6 +1122,10 @@ See `mode-line-percent-position'.") (lambda () (when (and (executable-find "go") (executable-find "cut") (executable-find "tr") (executable-find "sed")) (setq doom-modeline-env-command "go version 2>&1 | cut -d' ' -f3 | tr -d 'go' | sed -n '1p'")))) +(add-hook 'elixir-mode-hook + (lambda () + (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'")))) ;; Ensure modeline is inactive when Emacs is unfocused (and active otherwise)