最大限度地Emacs的一个框架只是一个监测与工作基本是在封闭的情况下进行

StackOverflow https://stackoverflow.com/questions/93415

  •  01-07-2019
  •  | 
  •  

我用 maxframe.el 以最大化我Emacs的框架。

它的伟大工程,在所有三个主要平台,除了在我的双头Mac setup(Air亲15英寸的笔记本电脑与23-英寸的监控)。

当最大限度地Emacs的一个框架,该框架扩大,以填补的宽度 监视和高度更大的监测。

显然,我想的框架,以最大限度地填补只监视器。我怎么可以检测的决议,这两个监视器使用的工作基本是在封闭的情况下进行?

谢谢, 雅各布

编辑:因为丹尼斯指出的,设置mf最大宽度是一个合理的解决方法。但是(如我已经提到),我希望有一个解决方案,适用于监视,并与任何决议。也许事情OS x-特定的风格Windows特w32-送系的命令。

有帮助吗?

解决方案

我快速扫描参考,提供给你 maxframe.el我不认为 你们采用相同的技术,我使用。不会的下列代码段帮助你吗?


(defun toggle-fullscreen ()
  "toggles whether the currently selected frame consumes the entire display or is decorated with a window border"
  (interactive)
  (let ((f (selected-frame)))
    (modify-frame-parameters f `((fullscreen . ,(if (eq nil (frame-parameter f 'fullscreen)) 'fullboth nil))))))

其他提示

确定`mf最大宽度的工作?它文件:

"*The maximum display width to support.  This helps better support the true
nature of display-pixel-width.  Since multiple monitors will result in a
very large display pixel width, this value is used to set the stop point for
maximizing the frame.  This could also be used to set a fixed frame size
without going over the display dimensions."

这样的事情是工作的您的窗口管理,不工作的emacs。(例如,Xmonad处理全屏emacs就好了。)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top