all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim Johnson <tim@johnsons-web.com>
To: help-gnu-emacs@gnu.org
Subject: Re: imenu :: menu not visible in php-mode
Date: Fri, 13 Aug 2010 19:40:11 -0500	[thread overview]
Message-ID: <-eedne0ONpZ2ePjRnZ2dnUVZ_o2dnZ2d@supernews.com> (raw)
In-Reply-To: MqidnYSIcZufRPjRnZ2dnUVZ_qWdnZ2d@supernews.com

On 2010-08-13, Tim Johnson <tim@johnsons-web.com> wrote:
> I am using the nXhtml package with emacs 23.1.1 GTK+ Version 2.20.0 on
> linux (ubuntu 10.04).
>
> "Nxhtml Use Imenu" is set to 'on' in 
> nXhtml -> nXhtml Help and Setup -> Customize nXhtml
> this configuration is saved as 
> '(nxhtml-use-imenu t) in the custom-set-variables
> form in .emacs
>
> I can also verify that nxhtml-use-imenu is set to t
> from emacs itself. Unfortunately, I still don't have
> an imenu.
>
> What else do I need to do?
  I am answering my own query with a partial solution:
	I added an add-hook form in .emacs *in addition to*
	the nXhtml configuration.
(add-hook 'php-mode-hook 
          '(lambda ()
             (imenu-add-menubar-index)
             (setq imenu-sort-function 'imenu--sort-by-name)))
And now the index menu is rendered in php-mode. 
One minor problem: imenu does not appear to be indexing
functions where the function name begins with '&' (the ampersand).
Not a big deal.

Perhaps this will help someone else. Any other comments are
welcomed.	

regards
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com


      reply	other threads:[~2010-08-14  0:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-13 23:45 imenu :: menu not visible in php-mode Tim Johnson
2010-08-14  0:40 ` Tim Johnson [this message]

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=-eedne0ONpZ2ePjRnZ2dnUVZ_o2dnZ2d@supernews.com \
    --to=tim@johnsons-web.com \
    --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.