在启动时最大化 Emacs?(不是全屏) [英] Maximize Emacs on start up? (not the fullscreen)

查看:16
本文介绍了在启动时最大化 Emacs?(不是全屏)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Emacs 启动后按 alt-f10(在 GNU/Linux 中)以最大化窗口(在 Emacs 术语中,它实际上是一个框架)对我来说很常见.大多数时候我按三次因为我太早按 alt-f10 这使得一些垃圾出现在 minibuffer 周围(Emacs 显示错误?)

It's common for me to press alt-f10 (in GNU/Linux) after Emacs start up for maximizing window (in the Emacs terminology, it's actually a frame). Most of the time I press thrice because I was too early to press first alt-f10 which makes some garbage appear around the minibuffer (Emacs display bug?)

我怎样才能使这个自动化?(也许使用 Gnome 设置或使用 elisp?)

How can I automate this one? (Maybe with Gnome settings or with elisp?)

我正在使用 emacs24(来自 bzr 存储库).

I am using emacs24 (from bzr repo).

请注意,这不是我想要的按 f11 可以获得的常规全屏.

Note that it's not the regular fullscreen I want which you would get by pressing f11.

推荐答案

(defun fullscreen (&optional f)
       (interactive)
       (x-send-client-message nil 0 nil "_NET_WM_STATE" 32
               '(2 "_NET_WM_STATE_MAXIMIZED_VERT" 0))
       (x-send-client-message nil 0 nil "_NET_WM_STATE" 32
               '(2 "_NET_WM_STATE_MAXIMIZED_HORZ" 0)))

可能有用.(取自此处.)

这篇关于在启动时最大化 Emacs?(不是全屏)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆