From: "Lennart Borgman" <lennart.borgman@gmail.com>
To: "B. T. Raven" <nihil@nihilo.net>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to bind <lwindow>-; with a function on windows?
Date: Sun, 26 Oct 2008 23:13:29 +0100 [thread overview]
Message-ID: <e01d8a50810261513r7c89c0b1j833cd56a8196399e@mail.gmail.com> (raw)
In-Reply-To: <0pudnRRrfsDCBJnUnZ2dnUVZ_v7inZ2d@sysmatrix.net>
On Sun, Oct 26, 2008 at 5:23 PM, B. T. Raven <nihil@nihilo.net> wrote:
> anhnmncb wrote:
>>
>> When I type M-x global-set-key RET, then press <lwindow>, the help
>> window pops up and show:
>>
>> <rwindow> runs the command ignore, which is an interactive compiled
>> Lisp function in `subr.el'.
>>
>> It is bound to <mouse-movement>, <language-change>, <lwindow>,
>> <rwindow>.
>>
>> I have no chance to press <lwindow>-; to function. Type them in emacs
>> window just produce a ;.
>>
>>
>>
>
> If you put this in your .emacs:
>
> (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
> w32-rwindow-modifier 'super ;; Right Windows
> w32-apps-modifier 'hyper) ;; App-Menu (key to right of Right
> Windows)
>
> then you will be able to use these bottom row keys as modifiers but you
> still won't be able to bind a function to the bare key (lwindow for
> example). You could however bind the function to Super- [a through z] or
> even combinations of Ctl, Meta, Super, and Hyper:
>
> (global-set-key [(super w)] 'foo)
>
> As Lennart notes there are some combinations that Windows will trap at the
> OS level but some of these are useful. Alt-tab will switch focus between
> emacs and some other app from which you may want to copy-paste for example.
There are more combinations than Alt-Tab that Windows will trap. For
example on my pc if I do
(global-set-key [(super ?e)]
(lambda() (interactive) (message "called super E")))
This does not work, lwindow+e will still show Windows Explorer.
That is correct according to MS documentation which says you can not
rely on rebinding lwindow/rwindow without a low level keyboard hook.
Sometimes it works, sometimes it doesn't.
next prev parent reply other threads:[~2008-10-26 22:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2108.1224990559.25473.help-gnu-emacs@gnu.org>
2008-10-26 16:23 ` How to bind <lwindow>-; with a function on windows? B. T. Raven
2008-10-26 22:13 ` Lennart Borgman [this message]
[not found] ` <mailman.2136.1225059214.25473.help-gnu-emacs@gnu.org>
2008-10-27 2:56 ` B. T. Raven
2008-10-27 5:25 ` anhnmncb
[not found] ` <mailman.2149.1225085142.25473.help-gnu-emacs@gnu.org>
2008-10-27 18:43 ` B. T. Raven
2008-10-26 3:08 anhnmncb
2008-10-26 10:15 ` Lennart Borgman
2008-10-26 12:14 ` anhnmncb
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=e01d8a50810261513r7c89c0b1j833cd56a8196399e@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=nihil@nihilo.net \
/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.