用于打开 emacs 新实例的 emacs 命令

发布于 2024-08-28 13:10:31 字数 137 浏览 2 评论 0原文

如何制作跨平台 emacs 命令来使用 -q 选项打开另一个 emacs 实例?

我需要这样一个命令的原因是,可以很容易地修改该命令,使其使用 -q 和 -l 选项打开另一个 emacs 实例,以便新实例加载我正在使用旧实例编辑的 el 文件。

How can I make a cross-platform emacs command that opens another instance of emacs with -q option?

The reason why I need such a command is that it would be easy to modify the command to make it open another instance of emacs with -q and -l option so that the new instance loads an el file that I am editing with the old instance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

水水月牙 2024-09-04 13:10:31

如果 emacs 在您的路径中,您可以使用 meta-x shell 然后使用 emacs -d

If emacs is in your path, you could do that with meta-x shell and then emacs -d

書生途 2024-09-04 13:10:31

这应该可以解决问题:

(defun start-emacs-q ()
  (interactive)
  (start-process "Emacs" nil
         (executable-find "emacs") "-q"))

This should do the trick:

(defun start-emacs-q ()
  (interactive)
  (start-process "Emacs" nil
         (executable-find "emacs") "-q"))
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文