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: emacs hyper key Date: Wed, 2 Jul 2008 11:53:19 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <2e67d3af-2b19-4b72-9496-ed6104a63e71@f24g2000prh.googlegroups.com> 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 1215027686 32438 80.91.229.12 (2 Jul 2008 19:41:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Jul 2008 19:41:26 +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 02 21:42:10 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 1KE8DO-0002ng-A3 for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Jul 2008 21:42:06 +0200 Original-Received: from localhost ([127.0.0.1]:55656 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KE8CX-0001zb-GW for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Jul 2008 15:41:13 -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: 96 Original-NNTP-Posting-Host: 24.6.97.120 Original-X-Trace: posting.google.com 1215024799 15563 127.0.0.1 (2 Jul 2008 18:53:19 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 2 Jul 2008 18:53:19 +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.1 Safari/525.18, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:159851 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:55204 Archived-At: On Jul 1, 12:09 pm, Thr4wn 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 =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 su= per (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 , and . 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 which is really a 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 =E2=88=91 http://xahlee.org/ =E2=98=84