From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew McDermott Newsgroups: gmane.emacs.help Subject: Re: [apple-command as META-key in the terminal-emacs] Date: Mon, 02 Nov 2009 23:21:29 +0000 Message-ID: References: <7B7859AC-8882-4F6A-BFD3-78594B2EB920@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257204946 26422 80.91.229.12 (2 Nov 2009 23:35:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Nov 2009 23:35:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 03 00:35:39 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 1N56Qz-000142-4g for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Nov 2009 00:35:37 +0100 Original-Received: from localhost ([127.0.0.1]:51367 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N56Qy-0003Ng-Ly for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Nov 2009 18:35:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N56QY-0003Jn-9I for help-gnu-emacs@gnu.org; Mon, 02 Nov 2009 18:35:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N56QT-0003Fn-Qz for help-gnu-emacs@gnu.org; Mon, 02 Nov 2009 18:35:09 -0500 Original-Received: from [199.232.76.173] (port=44974 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N56QT-0003Fk-LR for help-gnu-emacs@gnu.org; Mon, 02 Nov 2009 18:35:05 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:33506) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N56QT-0003bk-4I for help-gnu-emacs@gnu.org; Mon, 02 Nov 2009 18:35:05 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1N56QR-0000qQ-SB for help-gnu-emacs@gnu.org; Tue, 03 Nov 2009 00:35:03 +0100 Original-Received: from 88-111-183-81.dynamic.dsl.as9105.com ([88.111.183.81]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Nov 2009 00:35:03 +0100 Original-Received: from andrew.iain.mcdermott by 88-111-183-81.dynamic.dsl.as9105.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Nov 2009 00:35:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 88-111-183-81.dynamic.dsl.as9105.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (darwin) Cancel-Lock: sha1:UDH1H0GXjVCLBy2px6AiL6QnGVM= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:69418 Archived-At: Hi, > I'm using emacs22-carbon (GNU Emacs 22.1.1 (i386-apple-darwin9, Carbon > Version 1.6.0) in Mac OS 10.5.1. I have no key-bindings in my > .emacs-file and automatically apple- command works as META-key in the > GUI-emacs ('emacs' in the terminal). I'm quite happy with the > key-bindings I find there. However in the terminal-emacs ('emacs -nw' > in the terminal) i haven't got this key- binding in spite of the same > .emacs-file. How can I get Apple-command as META-key in the > terminal-emacs ('emacs - nw' in the terminal) and otherwise standard > key-bindings? Take a look at: http://andrewmcdermott.blogspot.com/2009/11/cmd-key-happy-swap-cmdalt-keys-in.html I wrote this utility so that I could have the the cmd key do the right thing when using "emacs -nw". It's also handy for general readline navigation when using bash in Terminal.app. HTH, Andy.