X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_LOW,TW_KB,TW_TK,TW_XK X-Spam-Check-By: sourceware.org Subject: Re: How to I generate a hyper or super modifier in cygwin emacs under X References: <4F60C13D DOT 1060107 AT cornell DOT edu> <4F60CA21 DOT 2010902 AT dronecode DOT org DOT uk> From: Leo Content-Type: text/plain; charset=us-ascii In-Reply-To: <4F60CA21.2010902@dronecode.org.uk> Message-Id: <991AE8E1-5444-457E-80EB-8D61E413F56E@letterboxes.org> Date: Thu, 15 Mar 2012 13:51:19 +1100 To: "cygwin AT cygwin DOT com" Mime-Version: 1.0 (1.0) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q2F2pmPb016099 On 15/03/2012, at 3:41 AM, Jon TURNEY wrote: > On 14/03/2012 16:03, Ken Brown wrote: >> On 3/14/2012 7:19 AM, Leo wrote: >>> I try to set up emacs in a way that I can use key bindings like H-x >>> (Hyper + character x). > This is the wrong approach. Changing the mod which Alt_R accesses doesn't > change the keysym which Alt_R. > > If you peruse the xkeyboard-config manual page, you'll find a couple of > options which relate to mapping keys to hyper/super, which you can use. > > e.g. if you start the X server with the additional option '-xkboptions > caps:hyper' (or run 'setxkbmap -option caps:hyper' after starting the X > server), then the capslock key generates the Hyper_L keysum) > > (Note that mapping the Windows keys to hyper also requires the -keyhook > option, so that the X server sees those keys before the Windows shell) > > (If these mapping options available in xkeyboard-config don't meet your needs, > you'll have to customize them) Hi Jon Great info! With the help of setkbmap and the config files I was able to map Alt to Hyper. Thx heaps! > > Alternatively, google seems to suggest you could set the emacs variables > x-hyper-keysym, x-super-keysym etc. in some fashion to get emacs to recognize > other keysyms as hyper or super keys. x-hyper-keysym doesn't seem to work for me: the modifier keys pribably don't get passed through to emacs so that it can handle them. But setkbmap did the job! Leo -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple