From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Javier Newsgroups: gmane.emacs.help Subject: Re: Best terminal emulator for emacs? Date: Tue, 4 Sep 2018 13:51:27 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1536069211 4887 195.159.176.226 (4 Sep 2018 13:53:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Sep 2018 13:53:31 +0000 (UTC) User-Agent: tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.18.6-1-ARCH (x86_64)) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 04 15:53:27 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fxBlm-00018o-GF for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Sep 2018 15:53:26 +0200 Original-Received: from localhost ([::1]:51085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxBns-0002Jl-Rs for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Sep 2018 09:55:36 -0400 Original-Path: usenet.stanford.edu!goblin3!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-NNTP-Posting-Host: aPJVVR0E0beUwQdJulDzVg.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.3 Original-Xref: usenet.stanford.edu gnu.emacs.help:223703 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117828 Archived-At: Ergus 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 BackSpace: string(0x1b) string("C-BackSpace") \n \ Ctrl Shift 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