* Custom keybinding getting over-ridden in python mode
@ 2014-04-02 16:53 Roy Smith
2014-04-02 17:05 ` Roy Smith
[not found] ` <mailman.18753.1396458568.10748.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 3+ messages in thread
From: Roy Smith @ 2014-04-02 16:53 UTC (permalink / raw)
To: help-gnu-emacs
I have two Ubuntu Precise boxes that are both running GNU Emacs 23.3.1. I have the same init.el file on both boxes, which contains, among other things, the binding:
(global-set-key "\C-cm" 'compile)
On one machine (the one I've been running for a couple of years), this works in all modes. On the new machine that I just set up, the keybinding seems to get lost in Python mode. When I type C-C m, it echos "C-c m-" at the bottom of the screen and waits for more input. It works fine in other modes, and M-X compile works in python mode.
Any clue what might be different between the two boxes which is causing this behavior?
---
Roy Smith
roy@panix.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Custom keybinding getting over-ridden in python mode
2014-04-02 16:53 Custom keybinding getting over-ridden in python mode Roy Smith
@ 2014-04-02 17:05 ` Roy Smith
[not found] ` <mailman.18753.1396458568.10748.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 3+ messages in thread
From: Roy Smith @ 2014-04-02 17:05 UTC (permalink / raw)
To: help-gnu-emacs
Follow-up:
Not surprisingly, on the "broken" machine, when I do C-h b to look at the keymap, it includes:
C-c m Prefix Command
C-c m l pylint
C-c m n next-error
C-c m p previous-error
which the other machine does not. How do I figure out where those extra key bindings might be coming from?
On Apr 2, 2014, at 12:53 PM, Roy Smith wrote:
> I have two Ubuntu Precise boxes that are both running GNU Emacs 23.3.1. I have the same init.el file on both boxes, which contains, among other things, the binding:
>
> (global-set-key "\C-cm" 'compile)
>
> On one machine (the one I've been running for a couple of years), this works in all modes. On the new machine that I just set up, the keybinding seems to get lost in Python mode. When I type C-C m, it echos "C-c m-" at the bottom of the screen and waits for more input. It works fine in other modes, and M-X compile works in python mode.
>
> Any clue what might be different between the two boxes which is causing this behavior?
>
> ---
> Roy Smith
> roy@panix.com
>
---
Roy Smith
roy@panix.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Custom keybinding getting over-ridden in python mode
[not found] ` <mailman.18753.1396458568.10748.help-gnu-emacs@gnu.org>
@ 2014-04-05 16:21 ` Rusi
0 siblings, 0 replies; 3+ messages in thread
From: Rusi @ 2014-04-05 16:21 UTC (permalink / raw)
To: help-gnu-emacs
On Wednesday, April 2, 2014 10:35:12 PM UTC+5:30, Roy Smith wrote:
> Follow-up:
>
>
>
> Not surprisingly, on the "broken" machine, when I do C-h b to look at the keymap, it includes:
>
>
> C-c m Prefix Command
>
> C-c m l pylint
> C-c m n next-error
> C-c m p previous-error
Hi Roy!
Not by way of answer but just reducing the sources of problem:
Have you tried going from global-set-key to define-key on the suitable keymap?
[Sorry I am without emacs ATM so its that vague]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-05 16:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-02 16:53 Custom keybinding getting over-ridden in python mode Roy Smith
2014-04-02 17:05 ` Roy Smith
[not found] ` <mailman.18753.1396458568.10748.help-gnu-emacs@gnu.org>
2014-04-05 16:21 ` Rusi
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).