🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #2053

Re: customizing question

#2053
From: David Ellis 04-Jan-1993 1104
Date: Mon, 04 Jan 1993 16:04
23 lines
1587 bytes
gregl@lestat.Corp.Sun.COM (Gregory Layer) asks:

> I would like to change the key that binds to minibuffer-complete from a 
> TAB to C-f.  However, I don't want to lose the normal C-f functionality, so
> doing the following is not satisfactory: (in my .emacs)
>
>	(define-key global-map "\C-f" 'minibuffer-complete)
>
> Any suggestions on how to do this?

Instead of global-map, try the keymaps used for minibuffer completion:

(define-key minibuffer-local-completion-map "\C-f" 'minibuffer-complete)
(define-key minibuffer-local-must-match-map "\C-f" 'minibuffer-complete)

You may also wish to program the TAB key in these two keymaps to do what you
prefer.

----
David  J  Ellis
Digital Equipment Corporation,          Semiconductor Engineering Group
77 Reed Road, Hudson MA 01749           Mailstop HLO2-3/D11         
Internet: d_ellis@ricks.enet.dec.com    Phone: (508) 568-4393 
Technical Details
Message-ID: <9301041604.AA13908@enet-gw.pa.dec.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!ogicse!decwrl!deccrl!news.crl.dec.com!pa.dec.com!ricks.enet.dec.com!d_ellis

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!ogicse!decwrl!deccrl!news.crl.dec.com!pa.dec.com!ricks.enet.dec.com!d_ellis
From: d_ellis@ricks.enet.dec.com (David Ellis  04-Jan-1993 1104)
Newsgroups: gnu.emacs.help
Subject: Re: customizing question
Message-ID: <9301041604.AA13908@enet-gw.pa.dec.com>
Date: 4 Jan 93 16:04:44 GMT
Article-I.D.: enet-gw.9301041604.AA13908
Lines: 23
X-Received: by usenet.pa.dec.com; id AA04623; Mon, 4 Jan 93 08:04:45 -0800
X-Received: by enet-gw.pa.dec.com; id AA13908; Mon, 4 Jan 93 08:04:43 -0800
X-Received: from ricks.enet; by decwrl.enet; Mon, 4 Jan 93 08:04:44 PST
X-To: gnu.emacs.help.usenet
X-Apparently-To: gnu.emacs.help.usenet