From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Corbe Newsgroups: gmane.emacs.help Subject: Re: (global-set-key) vs (define-key) Date: Thu, 25 Jun 2015 16:28:06 -0400 Organization: Unlimited download news at news.astraweb.com Message-ID: <87si9ffs89.fsf@corbe.net> References: <87wpyr3bqr.fsf@corbe.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1435264228 22583 80.91.229.3 (25 Jun 2015 20:30:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jun 2015 20:30:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 25 22:30:28 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z8Dmx-0001TO-6w for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2015 22:30:23 +0200 Original-Received: from localhost ([::1]:57379 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8Dmw-0002OR-Lv for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2015 16:30:22 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!news.astraweb.com!border6.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:BLZO6XbgRZS1u/H1xNlcR3mCpko= Original-Lines: 18 Original-NNTP-Posting-Host: 4a059d0b.news.astraweb.com Original-X-Trace: DXC=K?iJN`=996a92gaK\0; 3cnL?0kYOcDh@jf3L2Q@fXW9e[VV1\5dcZ`j]cO7LBOH\ki0GkPBX?==7mA?G 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105184 Archived-At: Michael Heerdegen writes: > Daniel Corbe writes: >> >> (define-key eshell-mode-map "?" 'router-mode-help-key) >> (define-key eshell-mode-map (kbd "C-z") 'router-mode-end-key) >> (define-key eshell-mode-map (kbd "TAB") 'self-insert-command)) > > This will modify `eshell-mode-map', the map used by eshell-mode. This > is probably not what you want. Better use a separate map, it set > `eshell-mode-map' as parent map to inherit from it. Thanks. This fixed my issue. The key bindings work perfectly now. > > > Michael.