From: Javier <invalid@invalid.invalid>
To: help-gnu-emacs@gnu.org
Subject: Re: Best terminal emulator for emacs?
Date: Tue, 4 Sep 2018 13:51:27 +0000 (UTC) [thread overview]
Message-ID: <pmm2kv$e8j$1@gioia.aioe.org> (raw)
In-Reply-To: mailman.347.1536025189.1284.help-gnu-emacs@gnu.org
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
next parent reply other threads:[~2018-09-04 13:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.347.1536025189.1284.help-gnu-emacs@gnu.org>
2018-09-04 13:51 ` Javier [this message]
2018-09-04 14:18 ` Best terminal emulator for emacs? Yuri Khan
2018-09-10 9:33 ` Ergus
2018-09-04 0:12 Ergus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='pmm2kv$e8j$1@gioia.aioe.org' \
--to=invalid@invalid.invalid \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.