Function: doom-modeline-env-setup-elixir

doom-modeline-env-setup-elixir is a byte-compiled function defined in doom-modeline-env.el.

Signature

(doom-modeline-env-setup-elixir)

Documentation

Prepares the modeline to later display the elixir version string.

Source Code

;; Defined in /nix/store/1lcicrdd2r4b8rkc91nnn74ymk1jl6yd-emacs-packages-deps/share/emacs/site-lisp/elpa/doom-modeline-20260928.1632/doom-modeline-env.el
;;;###autoload (autoload 'doom-modeline-env-setup-elixir "doom-modeline-env")
(doom-modeline-def-env elixir
  :hooks   '(elixir-mode-hook elixir-ts-mode-hook)
  :command (lambda () (list (or doom-modeline-env-elixir-executable "elixir") "--version"))
  :parser  (lambda (line)
             (cond
              ((string-match
                "Elixir[[:space:]]+\\([^[:space:]]+\\).*Erlang/OTP[[:space:]]+\\([0-9]+\\)"
                line)
               (format "%s/OTP%s" (match-string 1 line) (match-string 2 line))))))