4

我想知道如何在新的最大化框架中启动 emacsclient。

emacsclient -c 

开始一个新框架,但手册页指示无法最大化此框架。没有这样的选项--maximized

警告:这与帖子没有重复:如何为 emacsclient 提供命令行选项?. 事实上,这篇文章的答案并不能解决我的问题。他们使用的-F选项似乎记录在他们的 man 上,但在我的man emacsclient(在 debian sid 中​​)中不存在,并且该-F选项在我的情况下不起作用:

$ emacsclient -c  -F "((fullscreen . maximized))"
     emacsclient: unrecognized option '-F'
     Try `emacsclient --help' for more information

这是emacsclient --help信息的结果:

emacsclient --help
Usage: emacsclient [OPTIONS] FILE...
Tell the Emacs server to visit the specified files.
Every FILE can be either just a FILENAME or [+LINE[:COLUMN]] FILENAME.

The following OPTIONS are accepted:
-V, --version           Just print version info and return
-H, --help              Print this usage information message
-nw, -t, --tty          Open a new Emacs frame on the current terminal
-c, --create-frame      Create a new frame instead of trying to
                        use the current Emacs frame
-e, --eval              Evaluate the FILE arguments as ELisp expressions
-n, --no-wait           Don't wait for the server to return
-d DISPLAY, --display=DISPLAY
                        Visit the file in the given display
-s SOCKET, --socket-name=SOCKET
                        Set filename of the UNIX socket for communication
-f SERVER, --server-file=SERVER
                        Set filename of the TCP authentication file
-a EDITOR, --alternate-editor=EDITOR
                        Editor to fallback to if the server is not running
                        If EDITOR is the empty string, start Emacs in daemon
                        mode and try connecting again

Report bugs with M-x report-emacs-bug.
4

3 回答 3

13
(add-to-list 'default-frame-alist '(fullscreen . fullboth)) 

在 .emacs 中完成这项工作。

于 2013-12-13T11:50:28.080 回答
8

这是 Evgeny 的回答中的一个最小工作示例

  emacsclient -c -F "'(fullscreen . fullboth)"

  emacsclient -c -F "'(fullscreen . maximized)"

  alias ecx="emacsclient -c -F \"'(fullscreen . maximized)\""

  emacsclient -c -F "((width . 100) (height . 100) (left . 400))"
于 2017-02-13T22:35:32.607 回答
3

您可以尝试使用 '-F alist' 或 '--frame-parameters=alist' 选项。

alist 格式在此处描述

您可以选择宽度、高度和字体,以便您拥有舒适的窗口大小。

于 2013-12-12T17:28:45.993 回答