From fb2240002d2b905c16c45602160b7bf5e91e9fdb Mon Sep 17 00:00:00 2001 From: John Doty Date: Tue, 6 Nov 2018 20:32:14 +0000 Subject: [PATCH] Fix control keys under emacs --- .config/fish/config.fish | 3 +++ .emacs.d/core.el | 5 +++-- .tmux.conf | 17 ++++++++++------- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index c37eb0c..f179927 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -3,6 +3,9 @@ if status --is-login if test -d ~/devtools/buck/bin set PATH $PATH ~/devtools/buck/bin end + if test -d /snap/bin + set PATH $PATH /snap/bin + end end # export EDITOR=ec diff --git a/.emacs.d/core.el b/.emacs.d/core.el index c3aa951..75b133b 100644 --- a/.emacs.d/core.el +++ b/.emacs.d/core.el @@ -233,8 +233,9 @@ "Apply xterm keymap, allowing use of keys passed through tmux." (if (getenv "TMUX") (let ((map (copy-keymap xterm-function-map))) - (set-keymap-parent map (keymap-parent input-decode-map)) - (set-keymap-parent input-decode-map map)))) + (message "Activating tmux keys...") + (set-keymap-parent map (keymap-parent input-decode-map)) + (set-keymap-parent input-decode-map map)))) ;; ================================================================= ;; Random Goo. diff --git a/.tmux.conf b/.tmux.conf index f8e154c..d993166 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -6,7 +6,7 @@ bind-key C-b last-window set -g base-index 1 # Allows for faster key repetition -#set -s escape-time 0 +# set -s escape-time 0 # Set status bar set -g status-bg black @@ -14,12 +14,15 @@ set -g status-fg white set -g status-left "" set -g status-right "#[fg=green]#H" -# Rather than constraining window size to the maximum size of any client -# connected to the *session*, constrain window size to the maximum size of any +# COLORS +set -g default-terminal "screen-256color" + +# Rather than constraining window size to the maximum size of any client +# connected to the *session*, constrain window size to the maximum size of any # client connected to *that window*. Much more reasonable. setw -g aggressive-resize on -# Allows us to use C-a a to send commands to a TMUX session inside +# Allows us to use C-a a to send commands to a TMUX session inside # another TMUX session bind-key a send-prefix @@ -27,11 +30,11 @@ bind-key a send-prefix set -g xterm-keys on # Activity monitoring -#setw -g monitor-activity on -#set -g visual-activity on +# setw -g monitor-activity on +# set -g visual-activity on # Example of using a shell command in the status line -#set -g status-right "#[fg=yellow]#(uptime | cut -d ',' -f 2-)" +# set -g status-right "#[fg=yellow]#(uptime | cut -d ',' -f 2-)" # Highlight active window set-window-option -g window-status-current-bg red