Xah Lee on Frames vs. Window in Emacs

科技动态 2018-06-24 阅读原文

Xah Lee has an interesting post that I hadn’t seen before even though it’s originally from 2014 (since updated) and mentions a post of mine. The post is a discussion of whether it’s better to have a single large Emacs frame with multiple windows or multiple smaller frames
. Lee makes the case that it’s more efficient to have two window-sized frames rather than running Emacs in full screen mode and having two windows in the frame.

When Lee says something about efficiency with respect to Emacs, it’s worth paying attention. In the end, you might not agree but Lee takes this stuff seriously and generally studies the alternatives to determine which is best. If you haven’t read his post, you should do so now so that you understand the context.

Lee’s argument, as I understand it, is that switching between windows in a single frame is suboptimal because various Emacs operations will destroy your windows configuration and using something like winner-mode
to restore your window configuration is too much trouble. He prefers to let the OS handle the sizing and position of frames and configures a set of convenient keys to switch to Emacs and move between frames. He then feels free to split either frame temporarily into multiple windows and restore to the single window, presumably with something like Ctrl
+ x
, when he’s done.

I disagree with his workflow but not emphatically. I think the multiple frame idea has merit but I don’t see how it’s better—or even as good as—multiple windows. If you divide a frame into more than two windows, you’re still going to want an easy way of switching between them. As I wrote in the post that Lee linked, ace-window
is the ideal way to do that. And I don’t see how using winner-mode to restore your default window configuration is any harder than using delete-other-windows

Still, most of this boils down to individual preference and there’s not really a right or wrong answer. All that said, my actual workflow is not that different from Lee’s. I have an OS key to switch to Emacs which is usually running in full screen mode with two windows. Sometimes I need to split one of those windows temporarily and when I’m done I just call winner-mode
to restore things. Sometimes (usually when I running elfeed
in a full screen window) I do fire up another frame. It opens in full screen mode but doesn’t, of course, show the original frame. When I’m done, I destroy the new frame with Ctrl
+ x
and I’m back to where I was.

I could easily use two frames with this method but then I’d have to worry about two ways of switching to the window I wanted rather than just using ace-window
. What do you think? In particular, if you’re using the two frame method, what has been your experience?




对于 2017 年 PC 市场的一点看法 Windows 10 占有率, 正版率大幅度提高. Windows XP, 特别是 Ghost 部署的系统占有率将迅速锐减. 部分用户将会迁移至 macOS, 包含购买了 Mac 使用 BootCamp 的用户. Windows 10 Enterprise LTSB...
Emacs, Vim, or something else? Some topics are just bound to bring about a roaring argument spirited intellectual discussion. At the dinner table, it might be religion or pol...
Remacs Talk Transcript This is a transcript of my Remacs talk at the last Emacs meetup. This is based on my notes, so it may not match exactly what I said on the night. In...
【Data Flow】从论文开始看起(The Dataflow Model: A Practical... 正文之前 前阵子去找老板的时候。老板说跟我让我好好的看一下数据流方面的东西,明年初的时候会有一个国家重点专项需要我参与进去。好吧,那就看喽~不过听说如果要博士毕业,英文水平必须能够流畅的阅读英文文献。那我今天就开始喽 正文 The Dataflow Model:...
Microsoft Issues Updates for 96 Vulnerabilities Yo... As part of June's Patch Tuesday, Microsoft has released security patches for a total of 96 security vulnerabilities across its products, inclu...