我目前正在使用一个单独的枪支实例,我按如下方式开始:
emacs --name Mail --title Mail --no-desktop --no-splash --funcall gnus
由于 gnus 响应良好,并且我所有其他 emacs 内容都从不同的 emacs 实例作为 emacsclient 运行,因此我想尝试也从 emacsclient 运行 gnus。但我正在努力翻译我使用的命令行选项。我必须设置windos名称和标题,因为我正在使用很棒的窗口管理器,并且窗口应该根据窗口名称进行排序。另外,我想自动启动 gnus。
那么我该如何翻译上面的命令,让 gnus 作为 emacsclient 启动,并将 Windows 名称和标题设置为 Mail?
emacsclient ...???
最佳答案
您还可以使用设置框架列表的-F
参数并将其与-e
参数组合来执行您喜欢的操作,因此无需定义任何功能。调用将如下所示:
emacsclient -F '((name . "Mail"))' -e '(gnus)'
有关参数的信息,请参阅(info "(elisp)Frameparameters")
。
关于emacs - 使用 emacsclient 而不是 emacs - 翻译参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16012024/