[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (global-set-key) vs (define-key)
From: |
Daniel Corbe |
Subject: |
Re: (global-set-key) vs (define-key) |
Date: |
Thu, 25 Jun 2015 16:28:06 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Daniel Corbe <corbe@corbe.net> 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.