From: Nikolaj Schumacher <me@nschum.de>
To: Chris Withers <chris@simplistix.co.uk>
Cc: help-gnu-emacs@gnu.org
Subject: Re: python-mode changes in 22.3?
Date: Tue, 12 May 2009 13:13:56 +0200 [thread overview]
Message-ID: <m2vdo6efpn.fsf@nschum.de> (raw)
In-Reply-To: <4A09408A.2010108@simplistix.co.uk> (Chris Withers's message of "Tue, 12 May 2009 10:25:30 +0100")
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
next prev parent reply other threads:[~2009-05-12 11:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-07 12:37 python-mode changes in 22.3? Chris Withers
2009-05-12 9:17 ` Nikolaj Schumacher
2009-05-12 9:25 ` Chris Withers
2009-05-12 11:13 ` Nikolaj Schumacher [this message]
2009-05-16 16:55 ` Customising the menu for python-mode Chris Withers
2009-05-18 10:05 ` Nikolaj Schumacher
2009-05-25 15:52 ` Chris Withers
[not found] <mailman.6798.1241705872.31690.help-gnu-emacs@gnu.org>
2009-05-07 15:03 ` python-mode changes in 22.3? Anselm Helbig
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=m2vdo6efpn.fsf@nschum.de \
--to=me@nschum.de \
--cc=chris@simplistix.co.uk \
--cc=help-gnu-emacs@gnu.org \
/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.