简体   繁体   中英

Start Mac OS Emacs.app with command line arguments in background

This way -- creating an executable script named ~/bin/emacs with the following contents -- is recommended on the Emacs Wiki:

#!/bin/sh
/Applications/Emacs.app/Contents/MacOS/Emacs "$@"

However, when running emacs . , Emacs did not start in the current directory.

How can this be done?

This works for me:

#!/bin/sh
$(/Applications/Emacs.app/Contents/MacOS/Emacs "$@") &

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