unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Xah <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Behavior of M-x and A-x
Date: Mon, 11 Aug 2008 12:21:06 -0700 (PDT)	[thread overview]
Message-ID: <9cb65794-fa18-4a0e-9a82-27e85923038a@v26g2000prm.googlegroups.com> (raw)
In-Reply-To: g7pu21$spu$1@online.de

On Aug 11, 10:48 am, Peter Weiss <Peter.We...@ConSol.de> 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-<keys> 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 “H” for Hyper, “s” for Super.
Example:

(global-set-key (kbd "H-b") 'cmd) ; H is for hyper
(global-set-key (kbd "s-b") 'cmd) ; lower case “s” is for super

(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
∑ http://xahlee.org/

  reply	other threads:[~2008-08-11 19:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-11 17:48 Behavior of M-x and A-x Peter Weiss
2008-08-11 19:21 ` Xah [this message]
2008-08-11 19:54   ` Lennart Borgman (gmail)
     [not found]   ` <mailman.16401.1218484505.18990.help-gnu-emacs@gnu.org>
2008-08-12  0:11     ` B. T. Raven
2008-08-12  1:03       ` Lennart Borgman (gmail)
     [not found]       ` <mailman.16431.1218502993.18990.help-gnu-emacs@gnu.org>
2008-08-12 16:54         ` B. T. Raven
2008-08-12  7:33     ` Xah
2008-08-12 12:13       ` Lennart Borgman (gmail)
     [not found]       ` <mailman.16444.1218543201.18990.help-gnu-emacs@gnu.org>
2008-08-12 13:06         ` Emacsw32 website suggestion [Re: Behavior of M-x and A-x] Xah
2008-08-12 14:08           ` Lennart Borgman (gmail)
     [not found]           ` <mailman.16448.1218550117.18990.help-gnu-emacs@gnu.org>
2008-09-07 20:25             ` David Combs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9cb65794-fa18-4a0e-9a82-27e85923038a@v26g2000prm.googlegroups.com \
    --to=xahlee@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).