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

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

Re: Best terminal emulator for emacs?


From: Javier
Subject: Re: Best terminal emulator for emacs?
Date: Tue, 4 Sep 2018 13:51:27 +0000 (UTC)
User-agent: tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.18.6-1-ARCH (x86_64))

Ergus <spacibba@aol.com> wrote:
> I can use any terminal emulator (available in linux) but not emacs
> in gui (it is a long story).

Firewall at $JOB? slow network?  Sometimes even editing remote
files with tramp is not an option.

If the network is slow you may want to disable a few things in
recent versions of emacs.  It becomes very annoying when copying text.

(when (and (not (display-graphic-p))
           (>= emacs-major-version 25))
  (setq  select-enable-clipboard nil)
  (setq  x-select-enable-clipboard-manager nil)
  (setq  select-enable-primary t)
  (setq  mouse-drag-copy-region t))

> It will be very useful if anyone tells me what's the better terminal emulator

XTerm, but it doesn't pass some some key combinations as escape sequences
and you need to specify them explicitly in the translations resource.

Somebody should tell the XTerm maintainer to pass more key
combinations as escape sequences.  Either that or including a
comprehensive sample of the 'xterm.vt100.translations' resource in the
emacs documentation.

Try this

xterm -xrm \
    'xterm.vt100.translations:     #override \n\
      Ctrl ~Shift <Key>BackSpace: string(0x1b) string("C-BackSpace") \n \
      Ctrl  Shift <Key>BackSpace: string(0x1b) string("C-S-BackSpace")' \
  -e emacs -nw --execute='
 (progn (define-key function-key-map "\eC-BackSpace"   [C-backspace])
        (define-key function-key-map "\eC-S-BackSpace" [C-S-backspace]))'

C-h l (view lossage) will tell you if it works

 ESC C - B a c k S p a c e [backward-kill-word]
 ESC C - S - B a c k S p a c e [kill-whole-line]

Paste the snippets in ~/.Xdefaults and ~/.emacs.  Remember to run
'xrdb -merge ~/.Xdefaults'

Be careful with the vt100.translations string.  It is like a
programming language in itself.  The order of lines sometimes changes
the result.  Have a look at 'man xterm' and
/usr/share/emacs/*/lisp/term/xterm.el.gz


reply via email to

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