From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jaeyoun Chung Newsgroups: gmane.emacs.help Subject: apple-command as META-key in the terminal-emac in MacOS X (finally!) Date: Wed, 16 Jul 2008 10:01:37 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216244803 27174 80.91.229.12 (16 Jul 2008 21:46:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Jul 2008 21:46:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 16 23:47:29 2008 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 1KJEqO-0002KP-EW for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Jul 2008 23:47:28 +0200 Original-Received: from localhost ([127.0.0.1]:39546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJEpW-0008Mq-40 for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Jul 2008 17:46:34 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!z66g2000hsc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 125.178.179.78 Original-X-Trace: posting.google.com 1216227697 10462 127.0.0.1 (16 Jul 2008 17:01:37 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 16 Jul 2008 17:01:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z66g2000hsc.googlegroups.com; posting-host=125.178.179.78; posting-account=PDMHSQoAAACApo71nIol8TdzlSCxvVRV User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_4; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:160297 X-Mailman-Approved-At: Wed, 16 Jul 2008 17:43:38 -0400 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:55654 Archived-At: [my apology: I tried to reply to [apple-command as META-key in the terminal-emac] (http://groups.google.com/group/gnu.emacs.help/ browse_thread/thread/32073944ad9d30ec), but I can't in google groups interface.) Hello folks, After long frustration emacs in terminal in MacOS X, I finally figured it out. The solution is turn on "Use option as meta key" in preference panel. This is trivial and the tricky part is this: swap command and option key in only in terminal. I wrote a small SIMBL bundle to fulfill this swap trick. Here's the simple procedure. 1. google InputManger, SIMBL and install them. 2. fetch http://people.kldp.org/~jay/macosx/OptionCmdSwapper.bundle.zip 3. decompress the zip and install the bundle into ~/Library/ Application Support/SIMBL/Plugins/ directory (create one if it doesn't exists) 4. restart your terminal. And the source code is also available at http://people.kldp.org/~jay/macosx/OptionCmdSwapper.zip Good luck!