home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!psinntp!fims!poisson!chan
- From: chan@hawking.jpmorgan.com (Milo A. Chan)
- Subject: Re: Binding the DEL key.
- In-Reply-To: saj31052@uxa.cso.uiuc.edu's message of Mon, 31 Aug 1992 14:40:37 GMT
- Message-ID: <CHAN.92Sep9101354@hawking.jpmorgan.com>
- Sender: netnews@jpmorgan.com (Netnews Software)
- Organization: J. P. Morgan Securities, Inc.
- References: <BturFr.BB2@news.cso.uiuc.edu>
- Distribution: usa
- Date: Wed, 9 Sep 1992 15:13:54 GMT
- Lines: 20
-
- In article <BturFr.BB2@news.cso.uiuc.edu> saj31052@uxa.cso.uiuc.edu (Scotty A Johnson) writes:
-
- I keep trying to bind the DEL key (^?), but no matter what I try,
- emacs ALWAYS defines the key as backwards-delete-char-untabify.
-
- I have successfully bound meta-DEL and other keys. Why the problem
- with this one?
-
- The DEL key is often bound by each major mode in a local keymap. Try
- using the function local-set-key to set the DEL key (a.k.a. "\177") in the
- mode hook of the major mode you are using, such as c-mode-hook or
- emacs-lisp-mode-hook. For example:
-
- (setq c-mode-hook
- (function (lambda ()
- (local-set-key "\177" 'my-delete-char))))
- --
- Milo Chan, Fixed Income Market Strategies, J.P. Morgan Securities, Inc.
- email: chan_milo@jpmorgan.com ...or... chan@fractl.tn.cornell.edu
- phone: 212.648.4483 ...or... 212.648.4486 (sec'y)
-