簡體   English   中英

在后台使用命令行參數啟動Mac OS Emacs.app

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

建議在Emacs Wiki上以這種方式創建名為~/bin/emacs的可執行腳本,其中包含以下內容:

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

但是,在運行emacs . ,Emacs不在當前目錄中啟動。

如何才能做到這一點?

這對我有用:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM