Note that there are some explanatory texts on larger screens.

plurals
  1. POEmacs is ignoring my path when it runs a compile command
    text
    copied!<p>I'm trying to get a compile command (rake cucumber) to run with a specific ruby version on my Mac OS X system, I use rvm to do this currently in the terminal. My ~/.MacOSX/environment.plist has the correct path in it, but emacs insists on prepending to this path and therefore making it useless. I've also tried:</p> <pre><code>(when (equal system-type 'darwin) (setenv "PATH" (concat "/Users/fearoffish/.rvm/bin:/Users/fearoffish/.rvm/rubies/ruby-1.8.7-p249/bin:/Users/fearoffish/.rvm/gems/ruby-1.8.7-p249/bin:/Users/fearoffish/.rvm/gems/ruby-1.8.7-p249%global/bin:/Users/fearoffish/.rvm/bin")) (push "/Users/fearoffish/.rvm/bin" exec-path) (push "/Users/fearoffish/.rvm/rubies/ruby-1.8.7-p249/bin" exec-path) (push "/Users/fearoffish/.rvm/gems/ruby-1.8.7-p249/bin" exec-path) (push "/Users/fearoffish/.rvm/gems/ruby-1.8.7-p249%global/bin" exec-path) (push "/Users/fearoffish/.rvm/bin" exec-path)) </code></pre> <p>It was the desperate attempt of an emacs beginner to get what I wanted. It <em>still</em> prepends in front of it, so my path ends up being:</p> <pre><code>/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/fearoffish/.rvm/bin:/Users/fearoffish/.rvm/rubies/ruby-1.8.7-p249/bin:/Users/fearoffish/.rvm/gems/ruby-1.8.7-p249/bin:/Users/fearoffish/.rvm/gems/ruby-1.8.7-p249%global/bin </code></pre> <p>I don't want /usr/bin and others prepending, I want <em>my</em> path first and the emacs prepended path to be at the end, I reckon this would fix my problem.</p> <p>I test this by simply opening Aquamacs and running <code>meta-x compile</code> and then <code>echo $PATH</code>.</p> <p>Any ideas?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload