title: Adding binary path to emacs $PATH
body: <p>I tried the following:</p>
  
  <pre><code>(setenv "PATH" (concat (getenv "PATH") ":~/mybin"))
  (setq exec-path (append exec-path '(":~/mybin")))
  </code></pre>
  
  <p>But that never worked. I tried M-! and typing one of the binary names and that gave "unknown command" also when doing M-x compile with the binary name same result. M-x compile then echo $PATH gave the path without my ~/mybin folder in it.
  I am on solaris. What am I doing wrong?</p>