Reputation: 3793
I have been looking into packages that would enable me to have tabs in my emacs editor. Would like to open multiple files in a single emacs window. Any help/link would be appreciated
Upvotes: 10
Views: 12986
Reputation: 32484
Emacs has this functionality built in. They are called buffers C-x C-f
opens a new file of a name you provide. C-x b
lets you change between buffers. C-x C-b
lists all open buffers. C-x k
closes the current buffer.
If you want multiple buffers in one window then C-x 2
splits the windows horizontally. C-x 3
will split it vertically. C-x 1
will close all the windows that are not the current one. C-x o
cycles between open panes. &c.
GNU
the organization that manages the code base for GNU Emacs
has a wonderful tutorial
Note: the the above segment C-
means while holding the <CTRL>
key
post script: the ido library makes working with emacs in generally much easier.
Upvotes: 18
Reputation: 714
emacs doesn't contain "tabs" like an internet browser its best to understand the concept of buffers like the others have said but if you want to have a tab bar at the top anyway just to give a quick reminder of what buffers are open I suggest looking at the TabBarMode in the emacs wiki.
When using buffers i like to use m-x ibuffer
since you can filter out which buffers your interested in. say you only want to see the buffers which are associated with files in a /home/flood/coding/epicgame/ directory, i simple go to ibuffer, type / f
then type epicgame and a filter will be applied, then to remove the filter simply press /
twice and remember that C-h m
is your friend.
This technique has helped me alot, you can even OR filters together and merge them into groups. I love emacs XD
Upvotes: 0
Reputation: 72
or you can use elscreen
and use Gnu/Linux too, so i remap the Winkey to manage my tabs.
Upvotes: 0
Reputation: 1851
You can already open multiple files in buffers. However, if you want a visual guide, then this is what you might want: http://emacswiki.org/emacs/TabBarMode
Caveat emptor: You might have to configure it a bit.
Upvotes: 3