首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何从命令行启动emacsclient?

如何从命令行启动emacsclient?
EN

Stack Overflow用户
提问于 2013-11-29 12:35:01
回答 3查看 3.5K关注 0票数 5

我想知道如何在一个新的最大化框架内启动消瘦。

代码语言:javascript
复制
emacsclient -c 

启动一个新框架,但手册页指出无法最大限度地使用此框架。没有像--maximized这样的选项。

警告:这不是来自post:如何向emacsclient提供命令行选项?的复制。事实上,这篇文章的答案并不能解决我的问题。它们使用的是-F选项,这个选项似乎记录在man for 上,但在( debian中)中不存在,而-F选项在我的例子中不起作用:

代码语言:javascript
复制
$ emacsclient -c  -F "((fullscreen . maximized))"
     emacsclient: unrecognized option '-F'
     Try `emacsclient --help' for more information

以下是emacsclient --help获取信息的结果:

代码语言:javascript
复制
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.
EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2013-12-13 11:50:28

代码语言:javascript
复制
(add-to-list 'default-frame-alist '(fullscreen . fullboth)) 

在.emacs做这项工作。

票数 14
EN

Stack Overflow用户

发布于 2017-02-13 22:35:32

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

代码语言:javascript
复制
  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))"
票数 8
EN

Stack Overflow用户

发布于 2013-12-12 17:28:45

您可以尝试使用‘-F’或者‘-框架-参数=alist’选项。

alist格式描述为这里

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

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20285965

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档