How to start “emacsformacosx” in terminal

前端 未结 5 1937
北海茫月
北海茫月 2020-12-29 04:02

I am using MAC OX 10.6 , and install the emacs from here http://emacsformacosx.com/

I want to know how to start it in terminal, so my ecb can open current directory<

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-29 04:20

    By default terminal will open /usr/bin/emacs on OS X. You can change this behavior by changing what the "emacs" command will do. Open up ~/.profile and type the following:

    alias emacs=open /Applications/Emacs.app
    

    The next time you open a prompt this change will be active. (or you can run "source ~/.profile")

提交回复
热议问题