how do you open emacs for OSX? I have it downloaded in my Applications, but I don't know how to open it via my terminal (calling it "emacs test.cpp")..
I checked out some sites, but their solution didn't work for me.
how do you open emacs for OSX? I have it downloaded in my Applications, but I don't know how to open it via my terminal (calling it "emacs test.cpp")..
I checked out some sites, but their solution didn't work for me.
I have this in my .bashrc (or .zshrc) file.
alias emacs="open -a Emacs.app"
ysakamoto's answer is correct. I've taken it a step further, I'm using a shellscript using emacsclient to open a file in a running instance of Emacs, or launch a new one if there's none running. Alternatively, it just focuses Emacs/opens an empty session when I don't give it a file. Take a look.