help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slow emacsclient after some time


From: Alexandre LAURENT
Subject: Re: Slow emacsclient after some time
Date: Tue, 20 Nov 2012 17:41:07 +0100

On Tue, Nov 20, 2012 at 4:40 PM, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
>
> If you do not mind sharing, I would be interested in this solution.  I
> also set term to xterm for flow control and better meta key support for
> fullscreen applications in screen.
>
Sure!
That's the only hack I've found that seems to work well with
xterm/tmux/rxvt-unicode/etc. :

;; Remap escape sequences to correct keybindings
(defun my-term-setup-hook ()
  (define-key function-key-map "\e[1;3A" [M-up])
  (define-key function-key-map "\e[1;3B" [M-down])
  (define-key function-key-map "\e[1;3C" [M-right])
  (define-key function-key-map "\e[1;3D" [M-left])
  (define-key function-key-map "\e[1;5A" [C-up])
  (define-key function-key-map "\e[1;5B" [C-down])
  (define-key function-key-map "\e[1;5C" [C-right])
  (define-key function-key-map "\e[1;5D" [C-left]))
(add-hook 'term-setup-hook 'my-term-setup-hook)

(global-set-key [M-up] 'windmove-up)
(global-set-key [M-down] 'windmove-down)
(global-set-key [M-right] 'windmove-right)
(global-set-key [M-left] 'windmove-left)

I previously had only this:
;; (windmove-default-keybindings 'meta)

-- 
Alexandre LAURENT
EPITA GISTR 2011



reply via email to

[Prev in Thread] Current Thread [Next in Thread]