use exenv to manage your Elixir versions within Emacs
(add-to-list 'load-path (expand-file-name "/path/to/exenv.el/"))
(require 'exenv)
(global-exenv-mode)global-exenv-modeactivate / deactivate exenv.el (The current Elixir version is shown in the modeline)exenv-use-globalwill activate your global Elixir versionexenv-useallows you to choose what elixir version you want to useexenv-use-correspondingsearches for .exenv-version and activates the corresponding Elixir version
exenv installation directory
By default exenv.el assumes that you installed exenv into
~/.exenv. If you use a different installation location you can
customize exenv.el to search in the right place:
(setq exenv-installation-dir "/usr/local/exenv")IMPORTANT: Currently you need to set this variable before you load exenv.el
the modeline exenv.el will show you the active Elixir version in the modeline. If you don't like this feature you can disable it:
(setq exenv-show-active-elixir-in-modeline nil)The default modeline representation is the Elixir version (colored purple) in square brackets. You can change the format by customizing the variable:
;; this will remove the colors
(setq exenv-modeline-function 'exenv--modeline-plain)You can also define your own function to format the Elixir version the way you want.