Get emacs to respect control keys under tmux and putty
This commit is contained in:
parent
0225d656f3
commit
bc05b7d525
2 changed files with 12 additions and 1 deletions
|
|
@ -215,6 +215,14 @@
|
||||||
|
|
||||||
(global-set-key (read-kbd-macro "C-x f") 'font-lock-fontify-buffer)
|
(global-set-key (read-kbd-macro "C-x f") 'font-lock-fontify-buffer)
|
||||||
|
|
||||||
|
;; In addition, make sure various things are working properly with xterm-keys
|
||||||
|
;; on under tmux. (This has been the most reliable way to get putty to send
|
||||||
|
;; the right keystrokes into emacs.)
|
||||||
|
(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)))
|
||||||
|
|
||||||
;; =================================================================
|
;; =================================================================
|
||||||
;; Random Goo.
|
;; Random Goo.
|
||||||
;; Drunken men who don't know where they are, and no longer care.
|
;; Drunken men who don't know where they are, and no longer care.
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ bind-key C-b last-window
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
|
|
||||||
# Allows for faster key repetition
|
# Allows for faster key repetition
|
||||||
set -s escape-time 0
|
#set -s escape-time 0
|
||||||
|
|
||||||
# Set status bar
|
# Set status bar
|
||||||
set -g status-bg black
|
set -g status-bg black
|
||||||
|
|
@ -23,6 +23,9 @@ setw -g aggressive-resize on
|
||||||
# another TMUX session
|
# another TMUX session
|
||||||
bind-key a send-prefix
|
bind-key a send-prefix
|
||||||
|
|
||||||
|
# Fix control keys through putty
|
||||||
|
set -g xterm-keys on
|
||||||
|
|
||||||
# Activity monitoring
|
# Activity monitoring
|
||||||
#setw -g monitor-activity on
|
#setw -g monitor-activity on
|
||||||
#set -g visual-activity on
|
#set -g visual-activity on
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue