如果 emacs 守护进程已经在运行,我在 bash 中有一个别名运行 emacsclient,否则启动 emacs。但是,如果启动了新的 emacs 实例,我可以让它在后台运行,以便我仍然可以使用该终端(或关闭它)吗?在我的 bash 个人资料中,我有
alias ec="/usr/bin/emacsclient.emacs-snapshot -n -c -a /usr/bin/emacs-snapshot"
我可能在终端并输入
$ ec newfile
如果 emacs 守护程序尚未运行,是否可以创建一个别名来使上面的行相当于
$ emacs newfile &
代替
$ emacs newfile
(我还应该提到我使用的是 Linux Ubuntu,并且 emacs-snapshot 被分配给别名“emacs”)。
非常感谢!