On 21 June 2012 16:27, Christopher Done <[email protected]> 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 > [email protected] > http://projects.haskell.org/cgi-bin/mailman/listinfo/haskellmode-emacs > -- Ivan Lazar Miljenovic [email protected] http://IvanMiljenovic.wordpress.com _______________________________________________ Haskellmode-emacs mailing list [email protected] http://projects.haskell.org/cgi-bin/mailman/listinfo/haskellmode-emacs
