[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: python-mode changes in 22.3?
From: |
Nikolaj Schumacher |
Subject: |
Re: python-mode changes in 22.3? |
Date: |
Tue, 12 May 2009 13:13:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (darwin) |
Chris Withers <chris@simplistix.co.uk> wrote:
> Nikolaj Schumacher wrote:
>> Chris Withers <chris@simplistix.co.uk> wrote:
>>
>>> - the comment/uncomment menu items on the python menu have vanished. How do
>>> I
>>> get these back?
>>
>> You can be defining your own menu, but maybe you just want to start
>> using the universal comment commands, e.g. comment-or-uncomment-region.
>
> I should have known this was possible really ;-)
>
> Where can I find out how to do this?
I don't use the menus, only keys, so I can't do it for you.
Check out the Emacs manual
- 22.17.1.2 Extended Menu Items
I think they are extended the same way as binding commands to keys.
> That said, if we're adding menu items, how could I add one that basically did
> "shift region right", but twice?
First you need to write such a command. (Then bind the command to a
menu.)
(defun my-command-name ()
(interactive)
(call-interactively 'original-command-name)
(call-interactively 'original-command-name))
You can find the original command name with C-h k <click on menu>.
regards,
Nikolaj Schumacher