2

There are 2 best solutions below

0
On BEST ANSWER

I use:

alias cemacs='open -a /Applications/Emacs.app' 

Then I can type cemacs foo.txt and have emacs open the file.

(Is that what you were asking? The question was a little vague.)

0
On

export EDITOR=/usr/bin/emacs

to your ~/.bash_profile