News for hackers. Stuff that matters.
Re:An introduction to Tmux by branchless on Saturday April 02, 2016 @11:57AM (#11411960)
I use emacs and most keys are bound. I'm really wondering what emacs devotees use with tmux.
Re:An introduction to Tmux by robenkleene on Saturday April 02, 2016 @12:44PM (#11412161)
I use Emacs on and off, as well as Vim, and the key I've settled on for tmux prefix is ^q. It doesn't conflict with anything useful (that I've found anyway) and it's easy to hit with a caps lock as control.

For the record ^b is also move backwards by character in basic readline bindings (so it works in Emacs, on the command line, and everywhere on OS X). I've always found it baffling the programs like tmux and screen override readline bindings. Shouldn't those be on the list of bindings to never override?

Re:An introduction to Tmux by Saser on Saturday April 02, 2016 @01:42PM (#11412405)
In zsh (or at least with my configuration, which is prezto with a few plugins), Ctrl-q lets you "stash" your current command.

Say that you are typing some really long, complex command, and suddenly you realize that you are in the wrong folder. You press Ctrl-q (which clears the command and "stashes" it), then you cd to the right folder. As soon as you return to the prompt after issuing your cd command, your really long, complex command is back just as you typed it.

Re:An introduction to Tmux by Scarbutt on Saturday April 02, 2016 @01:24PM (#11412321)
C-z for the tmux prefix key.
Re:An introduction to Tmux by jebus989 on Saturday April 02, 2016 @02:44PM (#11412706)
Suspend?
Re:An introduction to Tmux by Scarbutt on Saturday April 02, 2016 @06:18PM (#11413785)
yes, at least for me, suspend is useless in both emacs and tmux, why waste a good keychord? :)
Re:An introduction to Tmux by sbagley on Saturday April 02, 2016 @12:12PM (#11412039)
Try this:

  unbind C-b
  set -g prefix `
  bind ` send-prefix
Re:An introduction to Tmux by scentoni on Saturday April 02, 2016 @01:45PM (#11412424)
I use ^t because I never use the transpose-chars function.
Re:An introduction to Tmux by superbaconman on Saturday April 02, 2016 @03:09PM (#11412841)
Remap ctrl-b to ctrl-alt-b

unbind C-b

set -g prefix M-C-b

bind M-C-b send-prefix