From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Newsgroups: gmane.emacs.help Subject: Re: Behavior of M-x and A-x Date: Mon, 11 Aug 2008 12:21:06 -0700 (PDT) Organization: http://groups.google.com Message-ID: <9cb65794-fa18-4a0e-9a82-27e85923038a@v26g2000prm.googlegroups.com> References: 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 1218484294 27654 80.91.229.12 (11 Aug 2008 19:51:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2008 19:51:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 11 21:52:26 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 1KSdQM-0004sJ-9w for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Aug 2008 21:51:26 +0200 Original-Received: from localhost ([127.0.0.1]:42504 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSdPQ-0004tI-Cn for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Aug 2008 15:50:28 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!v26g2000prm.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 50 Original-NNTP-Posting-Host: 24.6.97.120 Original-X-Trace: posting.google.com 1218482467 20297 127.0.0.1 (11 Aug 2008 19:21:07 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 11 Aug 2008 19:21:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v26g2000prm.googlegroups.com; posting-host=24.6.97.120; 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.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:161130 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:56478 Archived-At: On Aug 11, 10:48 am, Peter Weiss wrote: > Hello, > > sitting on a Sun keyboard, which behaves always a bit unusual... > > There are two keys on my keyboard: One marked with a diamond and the > other one with "Alt" letters. Both behave different. So "M-x" and > "A-x" give different commands. The usual meta commands like "M-x", > "M-q", etc. are bound to the M-key, all the A- seem to be > unbound. > > Is there a way to make emacs use A-key like the meta key? not sure how to do it on Solaris. But on Windows and Mac, do it like this: ; setting the PC keyboard's various keys to Super or Hyper (setq w32-pass-lwindow-to-system nil w32-pass-rwindow-to-system nil w32-pass-apps-to-system nil w32-lwindow-modifier 'super ;; Left Windows key w32-rwindow-modifier 'super ;; Right Windows key w32-apps-modifier 'hyper) ;; Menu key ; various settings for the Mac keyboard (setq mac-option-modifier 'hyper) ; sets the Option key as Hyper (setq mac-option-modifier 'super) ; sets the Option key as Super (setq mac-command-modifier 'meta) ; sets the Command key as Meta (setq mac-control-modifier 'meta) ; sets the Control key as Meta Then, The syntax for defining keys with the Super or Hyper modifier keys is the same as Meta and Control. Use =E2=80=9CH=E2=80=9D for Hyper, =E2=80=9Cs= =E2=80=9D for Super. Example: (global-set-key (kbd "H-b") 'cmd) ; H is for hyper (global-set-key (kbd "s-b") 'cmd) ; lower case =E2=80=9Cs=E2=80=9D is for s= uper (global-set-key (kbd "M-H-b") 'cmd) ; Meta+Hyper+b (global-set-key (kbd "M-s-b") 'cmd) ; Meta+Super+b http://xahlee.org/emacs/keyboard_shortcuts.html Xah =E2=88=91 http://xahlee.org/ =E2=98=84