简体   繁体   中英

emacs automatically open in mac

I was setting up with emacs on my macbook. In order to open the emacs from command line, I was follow other's suggestion to add an emacs script to my /usr/bin. Now I can open graphic emacs from command line, but the problem is that every time when I open the terminal, the emacs is automatic run. I don't know why this happened. Here is the script I added:
#!/bin/sh /Applications/Emacs.app/Contents/MacOS/Emacs "$@"
I also use chmod +x /usr/bin/emacs after the script was added. Please tell me what cause the problem happens.

If your using the standard OS X terminal, look under preferences->profile and the shell tab and make sure there isn't something set in the run on startup option.

If your using another terminal, such as iTerm, check the profiles.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM