unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: How to make Ctrl-d not log off the shell?
Date: Sat, 09 Jun 2007 18:37:18 -0400	[thread overview]
Message-ID: <jwvmyz8ah7h.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: slrnf4l2ms.99i.tyler.smith@blackbart.mynetwork

> (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

  parent reply	other threads:[~2007-06-09 22:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-16  0:09 How to make Ctrl-d not log off the shell? mowgli
2007-05-16  3:38 ` Tyler Smith
2007-05-17  8:48   ` Dieter Wilhelm
     [not found]   ` <mailman.761.1179392245.32220.help-gnu-emacs@gnu.org>
2007-05-17 19:53     ` mowgli
2007-05-18  7:17       ` Dieter Wilhelm
2007-05-22  4:37         ` Xavier Maillard
2007-06-09 22:37   ` Stefan Monnier [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-05-16  6:48 martin rudalics

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvmyz8ah7h.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).