How to start “emacsformacosx” in terminal

前端 未结 5 1929
北海茫月
北海茫月 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:29

    The easiest is to simply do

    open /Applications/Emacs.app --args foo
    

    An alias would then be

    alias emacs=open /Applications/Emacs.app --args "${@}"
    

    or in csh/tcsh

    alias emacs 'open /Applications/Emacs.app --args $1'
    

    edit: this seems to need a full path to open the correct file... I don't know if this is a problem with Emacs.app or with tcsh

提交回复
热议问题