Adding binary path to emacs $PATH
问题 I tried the following: (setenv "PATH" (concat (getenv "PATH") ":~/mybin")) (setq exec-path (append exec-path '(":~/mybin"))) 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? 回答1: : is not needed for exec-path. exec-path is list of directory paths. And you should use