From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marc Tfardy Newsgroups: gmane.emacs.help Subject: Re: binding a key for keyword completion in all modes Date: Thu, 26 Feb 2009 20:58:14 +0100 Message-ID: <70oaimFhe20gU1@mid.individual.net> References: <8b351a00-6fa4-45f3-b240-eb7d53ed2d4c@e18g2000yqo.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1235681060 357 80.91.229.12 (26 Feb 2009 20:44:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Feb 2009 20:44:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 26 21:45:36 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lcn6e-0008QW-O8 for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Feb 2009 21:45:21 +0100 Original-Received: from localhost ([127.0.0.1]:50951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lcn5J-0005jY-Uz for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Feb 2009 15:43:57 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newshub.sdsu.edu!feeder.erje.net!news-1.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 37 Original-X-Trace: individual.net hg40rXLZSYMpdP2+TP5l+w05AZkpzh+Ug2b6DRwnGPBh6Lhoyw Cancel-Lock: sha1:BJFT3L2RfAPFEL/bL2rHfErY5Wo= User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) In-Reply-To: <8b351a00-6fa4-45f3-b240-eb7d53ed2d4c@e18g2000yqo.googlegroups.com> Original-Xref: news.stanford.edu gnu.emacs.help:167111 comp.emacs:97868 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:62413 Archived-At: Xah Lee schrieb: > this is a problem that annoys me, i wonder how you guys solve it. > > the default shortcut for completion is Meta+Tab. However, that key is > after Alt+Tab, and in Mac and Windows and Linux, that combo is taken > by OS to switch apps. (i don't want to have emacs override that) > > What i have always been doing is pressing Esc then Tab, but that is > really annoying, especially if you use this often. > > How do you solve this? On windows you can use: (w32-register-hot-key [A-tab]) and M-TAB do completion in Emacs. I start Emacs in "normal" behavior, so ALT-TAB do task switch, but in my .emacs I have this small piece of code: ;; Disable Alt+Tab as task switch with ESC C-TAB (define-key esc-map (kbd "C-") (lambda () (interactive) (message "ALT-TAB task switch disabled.") (w32-register-hot-key [A-tab]))) If required I press "ESC C-TAB" and Emacs take over the M-TAB (ALT-TAB). Windows task switch works still with ALT-ESC (but in slightly another way). regards Marc