5 ms·
In the spirit of Cunningham's Law, you can open multiple files using emacsclient. Just list them after emacsclient (e.g. 'emacsclient file1.txt file2.txt'). T
by eeperson 11y ago
In the spirit of Cunningham's Law, you can open multiple files using emacsclient. Just list them after emacsclient (e.g. 'emacsclient file1.txt file2.txt'). This will open each file in its own buffer (roughly the equivalent to tabs).
Since I'm not very familiar with vim tabs, I'm curious what you get using using vim tabs that you don't get out of emacs buffers?
- DannoHung 11y agoThe buffer list is shared across the entire emacs daemon. So if I have many files already open in different client sessions and start running buffer next commands, I'm cycling through a very long list. Because you never ever start vim in a daemon mode, opening with -p creates a local list of files that you can cycle amongst. Additionally, the top line tells you which file you have open and which files are next and previous in the list of files you cycle through. I've always just found it rather nice since I tend to jump around between the same handful of files while I'm working and hitting gt two or three times is often faster and more mindless than remembering the keystrokes to invoke helm-projectile-find-file and also the name of the file I want to switch to.
- eeperson 11y agoThat makes sense. I actually never use daemon mode because I don't want to share buffers. If want a faster start up time but don't want to share buffers you may want to look at use-package[1] which will lazy load plugins. Also, if you want a easy way to cycle through buffers that also works in the terminal I recommend iflipb[2]. When you start cycling, it shows a list of buffers in the mini-buffer. Both of those are available as packages in Melpa. [1] - https://github.com/jwiegley/use-package https://github.com/jwiegley/use-package [2] - https://github.com/jrosdahl/iflipb https://github.com/jrosdahl/iflipb
- DannoHung 11y agoiflipb sounds like it more or less scratches the thing that makes me itchy even if it's not quite my old itch scratcher. Thanks!
- tomjakubowski 11y ago> In the spirit of Cunningham's Law, you can open multiple files using emacsclient. Just list them after emacsclient (e.g. 'emacsclient file1.txt file2.txt'). This will open each file in its own buffer (roughly the equivalent to tabs). emacs buffers are (almost exactly) equivalent to vim buffers. vim tabs don't really have an analogue in emacs, but imagine several layouts of (emacs) windows (each window showing a single buffer) you can switch between in a single frame.
- NoGravitas 11y agoThat's actually how emacs frames work on the terminal. There's no built-in equivalent on GUI. You could use either multiple GUI frames and a tiling window manager, or there are several packages on melpa for switching between window configurations.