简体   繁体   English

启动时默认的Emacs窗口缓冲区配对

[英]Default Emacs Window-Buffer Pairings Upon Startup

What is the idiomatic elisp way to have emacs start with N buffers, M windows, and M of those N buffers loaded into windows of a designated placement and size? 使emacs以N个缓冲区,M个窗口以及其中N个缓冲区中的M个加载到指定位置和大小的窗口中的惯用的省略方式是什么? Or maybe there's a nice plugin for this? 或者,也许有一个不错的插件? Specifically, I want to have an emacs session like this upon startup: 具体来说,我想在启动时进行这样的emacs会话:

在此处输入图片说明

In case version matters, I'm looking to use gnu emacs 24.3. 如果版本很重要,我希望使用gnu emacs 24.3。

One easy way is to use an Emacs desktop (see the Emacs manual, node Saving Emacs Sessions ). 一种简单的方法是使用Emacs 桌面 (请参阅Emacs手册,节点保存Emacs会话 )。 Position things as you want, then save your setup as a desktop. 根据需要放置事物,然后将设置保存为桌面。 (But you will need Emacs 24.4 to have the saved desktop include frame and window configurations.) (但是您将需要Emacs 24.4使保存的桌面包含框架和窗口配置。)

(If you use Bookmark+ then you can have multiple desktop bookmarks , and flip between them with a key.) (如果您使用Bookmark +,那么您可以拥有多个桌面书签 ,并用一个键在它们之间切换。)

Otherwise, you will need to write some Elisp code to re-create your frames, windows, buffers etc. in your init file. 否则,您将需要编写一些Elisp代码以在初始化文件中重新创建框架,窗口,缓冲区等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM