我很想知道如何在新的最大化框架中启动emacsclient。
emacsclient -c
启动一个新的框架,但手册页指示无法最大化此框架。没有--maximized
这样的选项。
警告:这不是帖子中的重复:How do I provide a command-line option to emacsclient?。实际上,这篇文章的答案并没有解决我的问题。他们使用-F
选项,这个选项似乎记录在为他们的人身上,但我的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.
答案 0 :(得分:11)
(add-to-list 'default-frame-alist '(fullscreen . fullboth))
<。>在.emacs中完成这项工作。
答案 1 :(得分:6)
这是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))"
答案 2 :(得分:2)