From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: binding a key for keyword completion in all modes Date: Wed, 25 Feb 2009 18:20:53 -0800 (PST) Organization: http://groups.google.com Message-ID: <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 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1235637715 30833 80.91.229.12 (26 Feb 2009 08:41:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Feb 2009 08:41:55 +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 09:43:10 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 1Lcbpm-0004w2-4P for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Feb 2009 09:43:10 +0100 Original-Received: from localhost ([127.0.0.1]:60174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LcboR-0002o8-4H for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Feb 2009 03:41:47 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!e18g2000yqo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 22 Original-NNTP-Posting-Host: 24.6.175.142 Original-X-Trace: posting.google.com 1235614853 18159 127.0.0.1 (26 Feb 2009 02:20:53 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 26 Feb 2009 02:20:53 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e18g2000yqo.googlegroups.com; posting-host=24.6.175.142; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:167087 comp.emacs:97863 X-Mailman-Approved-At: Thu, 26 Feb 2009 03:41:18 -0500 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:62394 Archived-At: 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? also, how to bind a key to completion in any lang's mode? the problem for me is, each lang mode usually uses a different name for completion, e.g. lisp-complete-symbol, python-complete-symbol, etc. Is there a way to solve this? Must i add hook to every mode? Thanks. Xah =E2=88=91 http://xahlee.org/ =E2=98=84