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

104 views Asked by At

How to configure the bash file?

2

There are 2 answers

0
cobbal 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
TigrisC On

export EDITOR=/usr/bin/emacs

to your ~/.bash_profile