summaryrefslogtreecommitdiff
path: root/.tmux.conf
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2015-02-05 20:38:10 +0900
committerSean Whitton <spwhitton@spwhitton.name>2015-02-05 20:38:10 +0900
commitea6747dba7ce0aedf953800061778fa0760d4ef1 (patch)
tree22d791887231c5d9456f1a2d44095f65cdf69aea /.tmux.conf
parent0b624c5d542c3b3ee590d5e9f47cec4b73684def (diff)
downloaddotfiles-ea6747dba7ce0aedf953800061778fa0760d4ef1.tar.gz
finally normalise tmux launcher bindings
Diffstat (limited to '.tmux.conf')
-rw-r--r--.tmux.conf11
1 files changed, 7 insertions, 4 deletions
diff --git a/.tmux.conf b/.tmux.conf
index 027e526e..2f2a0e16 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -35,7 +35,8 @@ set -g status-right "#[fg=blue]#S #I:#P #[fg=yellow]:: %d %b %Y #[fg=green]:: %l
unbind C-t
set -g prefix C-t
-# C-t t to send C-t to e.g. nested tmux, and C-t C-t to bounce between windows
+# C-t t to send C-t to e.g. Emacs or nested tmux, and C-t C-t to
+# bounce between windows
bind t send-prefix
unbind C-t
bind-key C-t last-window
@@ -45,10 +46,12 @@ bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
-# my launcher shortcuts
+# my launcher shortcuts: mnemonic is h for host and e for emacs/editor
bind-key m command-prompt -p "man" "split-window 'exec man %%'"
-bind-key e command-prompt -p "host" "split-window 'mosh %1'"
-bind-key C-e command-prompt -p "host" "new-window -n %1 'mosh %1'"
+bind-key h command-prompt -p "host" "split-window 'mosh %1'"
+bind-key C-h command-prompt -p "host" "new-window -n %1 'mosh %1'"
+bind-key e split-window 'emacsclient -amg -t'
+bind-key C-e new-window -n emacs 'emacsclient -amg -t'
# --- zenburn from https://github.com/plathrop/dotfiles/blob/master/tmux/zenburn.conf