简体   繁体   English

在后台使用命令行参数启动Mac OS Emacs.app

[英]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: 建议在Emacs Wiki上以这种方式创建名为~/bin/emacs的可执行脚本,其中包含以下内容:

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

However, when running emacs . 但是,在运行emacs . , Emacs did not start in the current directory. ,Emacs不在当前目录中启动。

How can this be done? 如何才能做到这一点?

This works for me: 这对我有用:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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