初始启动时 Emacs 框架的大小 - 希望设置为屏幕的全高和一半宽度
我试图弄清楚这一点,并找到了有关如何设置帧启动像素的函数。我发现了这个,但似乎适用于 Windows,无法正常工作: http://www.gnu.org/software/emacs/windows/old/faq4.html。可能只是我对编写 lisp 代码的无知。我想使用 x-display-pixel-height 和 x-display-pixel-width 的一半来设置帧大小。有谁有执行类似操作的代码或知道如何正确实现此操作。这是因为在不同的系统上它总是将其设置为具有大小。
I was trying to figure this out and I found the functions on how to set the pixels for a frame to start. I found this but appears to be for windows and couldn't get it working right: http://www.gnu.org/software/emacs/windows/old/faq4.html. May just have been my ignorance for writing lisp code. I wanted to use x-display-pixel-height and then half of x-display-pixel-width to set the frame sizes. Does anyone have code that does something similar or know how to correctly implement this. This is so on different systems it always sets it to have the size.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这应该将帧大小设置为大约正确的大小:
不幸的是,正如
frame-height
的文档所述,帧像素高度和行高之间的关系只是近似的:This should set the frame size to approximately the right size:
Unfortunately, as the documentation for
frame-height
states, the relationship between frame pixel height and line height is only approximate: