knupfer / haskell-emacs

Write Emacs extensions in Haskell
376 stars 22 forks source link

Allow choice of executable path #59

Closed pthariensflame closed 7 years ago

pthariensflame commented 7 years ago

Right now, haskell-emacs is unusable for me because it can't find stack (or cabal, nix, or ghc, for that matter). I've looked at the customization interface, but it doesn't allow me to specify that I want the use ~/.local/bin/stack, rather than it trying (and failing) to pick up an executable named stack from a nonexistent PATH.

mwotton commented 7 years ago

Is it not acceptable to add $HOME/.local/bin to the emacs PATH variable?

On Fri, Aug 5, 2016, 3:46 PM Alexander Altman notifications@github.com wrote:

Right now, haskell-emacs is unusable for me because it can't find stack (or cabal, nix, or ghc, for that matter). I've looked at the customization interface, but it doesn't allow me to specify that I want the use ~/.local/bin/stack, rather than it trying (and failing) to pick up an executable named stack from a nonexistent PATH.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/knupfer/haskell-emacs/issues/59, or mute the thread https://github.com/notifications/unsubscribe-auth/AAELgtTZ7CQUXGtMUt4_6usT5EJEeTEBks5qc5MBgaJpZM4JeAL9 .

pthariensflame commented 7 years ago

@mwotton It's unfortunately not possible for me to modify my PATH at all; I'm using Aquamacs, which means that it launches as an application and I don't get the chance to alter its environment.

mwotton commented 7 years ago

I don't mean the PATH in the environment, I mean the emacs PATH - you can set it in your .emacs. see https://www.emacswiki.org/emacs/ExecPath

On Fri, Aug 5, 2016, 3:52 PM Alexander Altman notifications@github.com wrote:

@mwotton https://github.com/mwotton It's unfortunately not possible for me to modify my PATH at all; I'm using Aquamacs http://aquamacs.org, which means that it launches as an application and I don't get the chance to alter its environment.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/knupfer/haskell-emacs/issues/59#issuecomment-237946633, or mute the thread https://github.com/notifications/unsubscribe-auth/AAELgvc5jdz30Jtsqnv4s4Ade9KDcnTBks5qc5R-gaJpZM4JeAL9 .

pthariensflame commented 7 years ago

Oh, I didn't even know that was a thing. 😆 Ok, having solved the problem, I'll close this issue.