This file is automatically generated from
README.org
. Do not edit manually.
This is a simple comint wrapper around IEx.
Just drop the file to the load-path
or use one of the methods below.
(quelpa
'(iex-mode
:fetcher git
:url "https://git.sr.ht/~sokolov/iex-mode"))
Setup and installation together.
(use-package iex-mode
:quelpa (iex-mode :fetcher git :url "https://git.sr.ht/~sokolov/iex-mode")
:bind
(:map elixir-mode-map
("C-c x i" . iex-run)
("C-c x p" . iex-run-script)))
(use-package iex-mode
:after elixir-mode
:bind
(:map elixir-mode-map
("C-c C-z" . iex-run)))
(use-package iex-mode
:after projectile
:config
(defadvice projectile-run-project
(around projectile-run-iex (fn arg))
(if (eq 'elixir (projectile-project-type))
(iex-run-script
(projectile-project-root)
(read-shell-command "iex> " "iex -S mix"))
(funcall fn arg))))
You can run iex
in the directory of current buffer with M-x iex-run
.
You can also run iex -S mix
in the project root with M-x iex-run-script
.
In both cases you can edit the exact command to run.