amnu3387
Emacs + alchemist - run iex -S mix phoenix.server?
Hey, I’m pretty new to emacs (have only used it a bit while reading Clojure for the brave and true). I installed the alchemist package, now by what I understand I should be able to run a repl from inside emacs itself without having to open a terminal window right? and probably start it with iex -S mix phoenix.server ?
Whenever I do M-x alchemist-iex-project-run I get /usr/local/Cellar/elixir/1.5.0/bin/elixir: line 127: exec: erl: not found
Process Alchemist-IEx exited abnormally with code 127
Does anyone know a good resource on how to setup emacs for this? Or should I just fire a terminal and do it normally while editing in emacs? Thanks
Marked As Solved
NobbZ
How do you start emacs? From a terminal or from your window manager?
If the latter, does the path it knows point to erl location?
Also if you used the latter, does the problem also exist when you start wands from a terminal that can “see” erl?
Also Liked
ucwaldo
Hi there, I’ve just set up emacs gui on macos. I am very used to zsh and faced the same issue of not being able to load the correct SHELL env when starting emacs.app from outside a terminal. Since I use a couple of extra env variables and extend $PATH quite a bit in my .zshrc, this was not really acceptable ![]()
I am using exec-path-from-shell and have configured it like so in my ~/.emacs:
;; ...
(package-initialize)
(when (memq window-system '(mac ns x))
(exec-path-from-shell-initialize))
;; ...
You will need to export $PATH from ~/.bash_profile or ~/.zshenv (it did not work from ~/.zshrc, but that’s stated in the docs):
export PATH=/usr/local/bin:/usr/bin:/bin # should be enough for most usages
or
export PATH=/usr/local/bin:$PATH # if you ignore what's in the docs ;)
Finally, no trouble finding erl or any other libraries and programs from emacs gui. I hope you already found a solution or that that helps








