Problems with new platform version
Ivan Lazar Miljenovic
ivan.miljenovic at gmail.com
Thu Jun 21 08:32:49 BST 2012
On 21 June 2012 16:27, Christopher Done <chrisdone at googlemail.com> wrote:
> Possible Emacs doesn't start with the right PATH variable. I always start it
> from the terminal, but from
> the GNOME menu shortcut, it's just, blank. To check this is indeed the
> cause, check out:
>
> M-: (getenv "PATH")
>
> If it's different to your echo $PATH in your shell then it's probably
> that. I think this is because Emacs is not started from the shell. So
> you need to add .cabal/bin and your GHC path to your session-wide (or
> system-wide) environment variable file:
> https://help.ubuntu.com/community/EnvironmentVariables#Session-wide_environment_variables
An alternative way of doing this:
; by appending a new path to existing path
(setenv "PATH"
(concat
(getenv "HOME") "/bin" ":"
(getenv "HOME") "/.cabal/bin" ":"
(getenv "PATH")
)
)
>
> Or you can make a bash script to run Emacs and change your Emacs
> launching shortcut to run that instead.
>
> _______________________________________________
> Haskellmode-emacs mailing list
> Haskellmode-emacs at projects.haskell.org
> http://projects.haskell.org/cgi-bin/mailman/listinfo/haskellmode-emacs
>
--
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
http://IvanMiljenovic.wordpress.com
More information about the Haskellmode-emacs
mailing list