all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xah <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs hyper key
Date: Wed, 2 Jul 2008 11:53:19 -0700 (PDT)	[thread overview]
Message-ID: <adbe0f71-708c-44b0-8621-1724058f2a77@v26g2000prm.googlegroups.com> (raw)
In-Reply-To: 2e67d3af-2b19-4b72-9496-ed6104a63e71@f24g2000prh.googlegroups.com

On Jul 1, 12:09 pm, Thr4wn <Seth.A.B...@gmail.com> wrote:
> First of all, what actually IS the emacs hyper key? the emacs meta key
> seems to just be mod1, but I can't seem to figure out what emacs will
> interpret as the hyper key.
> ...

i don't have the complete answer. Here's what i know.

The hyper, super, meta keys are keys in lisp machine keyboards,
popular in the 1980s.

See a photo and links to several other make/models here:
 http://xahlee.org/emacs/emacs_kb_shortcuts_pain.html

Here's prob the right way to assign hyper and super keys:

; 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


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

The above is from:
http://xahlee.org/emacs/keyboard_shortcuts.html
which you can find out about how to define keyboard shortcuts.

--------------
here's a excerpt from
(info "(emacs)User Input")


   Emacs defines several other modifier keys that can be applied to
any
input character.  These are called <SUPER>, <HYPER> and <ALT>.  We
write `s-', `H-' and `A-' to say that a character uses these
modifiers.
Thus, `s-H-C-x' is short for `Super-Hyper-Control-x'.  Not all
graphical terminals actually provide keys for these modifier flags--in
fact, many terminals have a key labeled <ALT> which is really a <META>
key.  The standard key bindings of Emacs do not include any characters
with these modifiers.  But you can assign them meanings of your own by
customizing Emacs.

   If your keyboard lacks one of these modifier keys, you can enter it
using `C-x @': `C-x @ h' adds the "hyper" flag to the next character,
`C-x @ s' adds the "super" flag, and `C-x @ a' adds the "alt" flag.
For instance, `C-x @ h C-a' is a way to enter `Hyper-Control-a'.
(Unfortunately there is no way to add two modifiers by using `C-x @'
twice for the same character, because the first one goes to work on
the
`C-x'.)

---------------------------------

excerpt from
http://xahlee.org/elisp/Character-Type.html
(elisp)Other Char Bits

   The X Window System defines three other modifier bits that can be
set
in a character: "hyper", "super" and "alt".  The syntaxes for these
bits are `\H-', `\s-' and `\A-'.  (Case is significant in these
prefixes.)  Thus, `?\H-\M-\A-x' represents `Alt-Hyper-Meta-x'.  (Note
that `\s' with no following `-' represents the space character.)
Numerically, the bit values are 2**22 for alt, 2**23 for super and
2**24 for hyper.


------------------------------

  Xah
∑ http://xahlee.org/

      parent reply	other threads:[~2008-07-02 18:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-01 19:09 emacs hyper key Thr4wn
2008-07-01 19:43 ` Pascal J. Bourguignon
2008-07-02 21:09   ` Thr4wn
2008-07-02 22:11     ` Pascal J. Bourguignon
2008-07-07  9:45     ` Giacomo Boffi
2008-07-02 18:53 ` Xah [this message]

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

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

  git send-email \
    --in-reply-to=adbe0f71-708c-44b0-8621-1724058f2a77@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.