all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chris Withers <chris@simplistix.co.uk>
To: Nikolaj Schumacher <me@nschum.de>
Cc: help-gnu-emacs@gnu.org
Subject: Customising the menu for python-mode
Date: Sat, 16 May 2009 17:55:17 +0100	[thread overview]
Message-ID: <4A0EEFF5.2050903@simplistix.co.uk> (raw)
In-Reply-To: <m2vdo6efpn.fsf@nschum.de>

Nikolaj Schumacher wrote:
> 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

Fat lot of good that did me ;-)

I tried monkey-see-monkey-do-ing from python.el and so far have this in 
my .emacs file:

;; menu items
(defvar chris-mode-map
   (let ((map (make-sparse-keymap)))
     (easy-menu-define python-menu map "Python Mode menu"
       `("Python"
	:help "Python-specific Features"
	"-"
	["Comment" python-shift-left :active mark-active
	 :help "Comment"]
	["Uncomment" python-shift-right :active mark-active
	 :help "Uncomment"]))
     map))

Which, while it doesn't error, also does nothing.

What am I doing wrong?

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk




  reply	other threads:[~2009-05-16 16:55 UTC|newest]

Thread overview: 7+ 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
2009-05-16 16:55       ` Chris Withers [this message]
2009-05-18 10:05         ` Customising the menu for python-mode Nikolaj Schumacher
2009-05-25 15:52           ` Chris Withers

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=4A0EEFF5.2050903@simplistix.co.uk \
    --to=chris@simplistix.co.uk \
    --cc=help-gnu-emacs@gnu.org \
    --cc=me@nschum.de \
    /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.