8 ms·
Moving to Emacs, I'm going to miss tmux more than I'll miss vim (there's evil-mode).
by john2x 13y ago
Moving to Emacs, I'm going to miss tmux more than I'll miss vim (there's evil-mode).
- Schiphol 13y agowhat? You can't run emacs in a tmux session?
- wging 13y agoYou definitely can--I do this all the time. I do literally mean all the time. My current session has been running the same emacs process inside a tmux window for about 60 days now I think.
- deleted 13y ago[deleted]
- jwr 13y agoI use emacs inside tmux all the time (on a Mac, in iTerm2). Works great.
- john2x 13y agoHow did you configure the Command key as Meta? I could never get it to work.
- wging 13y agoPreferences -> Keys, see the heading 'Remap Modifier Keys'. You can remap left command to left option, leaving right command as command so you can still cmd+tab out of iTerm. You might also have to to to Preferences -> Profiles -> Keys and on the bottom say that the left and right option keys both act as +Esc. If there's a better way I'd be interested to hear it, but this works for me.
- edoloughlin 13y agoI find that if I run emacsclient and emacs server, I don't need to use tmux. If I get disconnected, I just reconnect and run emacsclient again. All my buffer states are preserved.
- craigching 13y agoYeah, as an emacs user, every time a tmux post pops up on HN, I go read about it and wonder what it would really do for me. I guess what I'm seeing is that for my emacs sessions it really doesn't buy me anything. I'd be curious to hear about things I can do with tmux that I can't do with emacsclient and emacs daemon.
- Myrmornis 13y agoTmux is for your shell sessions. Emacsclient is orthogonal. Or do you do all your shell work in emacs?
- craigching 13y ago> do you do all your shell work in emacs? I do! eshell is a very good shell that integrates nicely with emacs. For instance, I love egrep in eshell, you can move your cursor over the output and emacs will take you right to the line that matches. So let me temper that just a wee bit, I do use eshell a lot, but there are a few cases where it doesn't work quite well, but those cases are few and far between, certainly not enough to warrant using tmux, at least I can't be convinced yet. EDIT: I said eshell integrates nicely with emacs. That's not true, it's a shell written in elisp for emacs, no integration whatsoever. Sorry, but I don't feel like rewording what I wrote, so just adding this edit comment ;)
- unhammer 13y agoIf you do any sort of work on Middling-to-Fairly-Big Data, eshell is not for you. I love emacs, and would love to love eshell, but I prefer running grep/awk/sed/etc in tmux since it's just soo much faster. And of course, if you need to use any sort of curses type thing, eshell (or M-x shell) often fails in ugly ways.
- vdm 13y agohttp://perlstalker.vuser.org/blog/2012/10/16/emacsclient-and-tmux/ http://perlstalker.vuser.org/blog/2012/10/16/emacsclient-and...
- aaronem 13y agoWhy? As far as I can tell, Emacs, when talking to an X server or otherwise drawing its own windows (i.e., not in a terminal), is a strict superset of tmux.