如何从命令行启动emacsclient最大化

 小小可爱天使 发布于 2023-02-13 19:26

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

emacsclient -c 

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

警告:这不是帖子中的重复:如何为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.

ppr.. 11

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

在.emacs中完成这项工作.

2 个回答
  • (add-to-list 'default-frame-alist '(fullscreen . fullboth)) 
    

    在.emacs中完成这项工作.

    2023-02-13 19:27 回答
  • 这是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))"
    

    2023-02-13 19:28 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有