how can I fire up carbon emacs (as editor instead of emacs in default) to edit a file under terminal.app?

100 Views Asked by At

How to configure the bash file?

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