System: El Capitan v10.11.15
Installed Emacs and smlnj
which smlnj
gives me: /usr/local/bin/sml
adjusted my .bash_profile : export PATH="$PATH:/usr/local/bin/sml"
and .emacs
to :
(setenv "PATH" (concat "/usr/local/bin/sml:" (getenv "PATH")))
(setq exec-path (cons "/usr/local/bin/sml" exec-path))
and now when I do C-c C-s on sml file it gives me:
Searching for program: no such file or directory!
Any one can help me?
Mon Jan 2 16:44:47 GMT 2017
[Can't add a comment as just shy of 50 reputation points.]
A few details that were left out in the info provided:
$PATH and
exec-path
need directories - not the file name to the sml binary.export PATH=$PATH:/usr/local/bin
It would be better to put this in.bashrc
(so it is available in a newly started shell)What version of emacs
A point of note -
which smlnj
should producesmlnj not found
. (which sml
will produce/usr/local/bin/sml
)