Emacs上的标签窗口 [英] Tabbed windows on Emacs

查看:340
本文介绍了Emacs上的标签窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在像vim这样的窗口中获得多个选项卡。在vim选项卡中没有绑定缓冲区,您可以有多个选项卡,每个选项卡都有多个分割和缓冲区。到目前为止,我发现:

I'm trying to get multiple tabs in windows like vim does it. In vim tabs aren't tied to buffers and you can have multiple tabs each with multiple splits and buffers in them. What I've found so far is:


  • tabbar:显示所有标签。

  • winring:没有在窗口中显示标签,并且笨重使用(必须首先命名每个选项卡)。这是最接近我想要的。

有没有人有任何想法,如果这是可能的? Tabs + emacs很难搜索;我找到的大部分是空间vs标签的讨论:)

Does anyone have any ideas if this is possible? Tabs + emacs is hard to search for; most of what I find are discussions of spaces vs tabs :)

更新:
这张图片显示了我想要的东西。

Update: This pic shows the kind of thing I want.

每个选项卡上有多个选项卡和一堆分割缓冲区。

Multiple tabs and a bunch of split buffers on each tab.

推荐答案

一些名为 ElScreen 的功能,可让我做你想要的工作。当我决定开始使用Emacs时,我实际上也想要这个功能。

I use something called ElScreen, which allows me to do what you are looking for. I actually also wanted this feature from VIM as well when I decided to start using Emacs.

以下是我用于ElScreen的代码,我甚至使用相同的类型的键绑定,就像你在VIM中使用的那样。 Control-C ,其次是tabe或tabd来模拟:tabe :tabd 在VIM中。

The following is the code that I use for ElScreen, I even used the same type of keybindings as you would use in VIM. Control-C, followed by tabe or tabd to emulate the :tabe or :tabd in VIM.

为了迭代下一个屏幕或在这种情况下的标签,我使用控件 < kbd> _ 和控件 +

To iterate through the next screen, or tab in this case, I use Control Meta _ and Control Meta +.

;; ---------------------------------------
;; load elscreen
;; ---------------------------------------
(load "elscreen" "ElScreen" t)

;; F9 creates a new elscreen, shift-F9 kills it
(global-set-key (kbd "C-c t a b e") 'elscreen-create)
(global-set-key (kbd "C-c t a b d") 'elscreen-kill)

;; Windowskey+PgUP/PgDown switches between elscreens
(global-set-key (kbd "C-M-_") 'elscreen-previous)
(global-set-key (kbd "C-M-+") 'elscreen-next)

以下是一个在操作中设置选项卡的示例:

Here's an example of the tab setup in action:

第一屏。

第二屏幕:

您可以使用 Cx 3 kbd>和 Cx 2 在选项卡中:)

You can have split buffers using C-x3 and C-x2 in a tab :)

这篇关于Emacs上的标签窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆