Assuming you have used homebrew or similar to install emacs and sml.
A few things to watch out for
Your PATH environment should be a list of directory paths, not file paths i.e.
export PATH=$PATH:/usr/local/bin
in your .bash_profile. Note that PATH settings should go in bash_profile rather than .bashrc. The difference is that bash_profile is sourced once on login while bashrc is sourced for every interactive shell, so it is good to keep bashrc as small as possible. However, with the path setting, there is another 'gotcha' if you plan to run emacs from launchpad because launchpad does not source your bash_profile OR bashrc file.
There are various ways to get environment settings into luanchpad configs, but the easiest solution for the PATH setting is to just add /usr/local/bin tot the global environment. Easiest way to do this is to just add /usr/local/bin on a line in the /etc/paths file (you will need to use sudo to edit that file).
- There is a vary useful emacs ELPA package called exec-path-from-shell which makes setting up the exec path stuff vary easy. Recommend installing that package. There are some other useful OSX specific packages in the melpa archives which you may also find useful for improving Emacs and OSX integration.
sml-program-name
) in Emacs? (You can set it to the full path and not have to mess withexec-path
.) – molbdnilo