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

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

Re: How to make Ctrl-d not log off the shell?


From: Stefan Monnier
Subject: Re: How to make Ctrl-d not log off the shell?
Date: Sat, 09 Jun 2007 18:37:18 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

> (add-hook 'comint-mode-hook 
>         '(lambda ()
>             (define-key comint-mode-map "\C-d" 'delete-char)))

Better yet:

 (add-hook 'comint-mode-hook 
           (lambda ()
             (define-key comint-mode-map "\C-d" nil)))

I.e. don't say to what C-d should be bound, just leave it be whatever it is
usually bound to.


        Stefan


reply via email to

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