Emacs组织模式如何防止拆分窗口? [英] How do I keep Emacs org-mode from splitting windows?
问题描述
我是一个新的emacs用户,使用emacs来实现真棒组织模式。我有链接到我的页面顶部的所有我的组织文件,但每次我点击链接它分裂我的窗口,所以我只有一半的屏幕可用。如何设置它,以便emacs不会水平分割窗口,而是为我的链接打开一个新窗口?
I'm a new emacs user using emacs for the awesome org-mode. I have links to all my org files at the top of my pages but everytime I click a link it splits my window, so I only have half of the screen estate available. How do I set it so that emacs does not split the window horizontally but rather opens up a new window for my links?
推荐答案
我假设你的意思是你想打开一个新的框架链接。 (Emacs术语与其他GUI应用程序有所不同,因为Emacs早于X11,其他应用程序中称为窗口在Emacs中称为框架,因为窗口在Emacs中已具有特定含义,被使用在很多功能的名称。)现在发生的是,你有一个框架包含一个窗口,Emacs正在拆分该窗口以形成两个窗口。
I'm assuming you mean you want to open the link in a new frame. (Emacs terminology is a bit different from other GUI apps, because Emacs predates X11. What would be called a "window" in other apps is called a "frame" in Emacs, because "window" already had a specific meaning in Emacs, and was used in the names of lots of functions.) What's happening now is that you have a frame containing one window, and Emacs is splitting that window to form two windows.
您需要自定义 org-link-frame-setup
以使用 find-file-other-frame
而不是默认 find-file-other-window
。
You need to customize org-link-frame-setup
to use find-file-other-frame
instead of the default find-file-other-window
.
您可以通过键入 Mx自定义-variable< ENTER> org-link-frame-setup< ENTER>
。点击 find-file-other-window
旁边的值菜单
,然后选择 find-file - 其他框架
,然后单击保存以备将来会话
。
You can do this by typing M-x customize-variable <ENTER> org-link-frame-setup <ENTER>
. Click the Value Menu
next to find-file-other-window
and select find-file-other-frame
, then click Save for future sessions
.
这篇关于Emacs组织模式如何防止拆分窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!