haskell / haskell-mode

Emacs mode for Haskell
http://haskell.github.io/haskell-mode/
GNU General Public License v3.0
1.33k stars 342 forks source link

Q: haskell-process-load-file with additional environment variables #1750

Open ocramz opened 3 years ago

ocramz commented 3 years ago

I would like to customize the behavior of ..load-file (C-c C-l) such that the resulting shell loads environment from a given shell script (e.g. the system .bashrc). Unfortunately my ELisp is nonexistant so I don't understand how the Emacs internals work.

Question on SO :

https://stackoverflow.com/questions/67940815/emacs-haskell-interactive-mode-in-custom-shell

Thank you !

purcell commented 3 years ago

It's possible you should just use something like my exec-path-from-shell emacs package, or perhaps set up direnv with my envrc emacs package.