* imenu :: menu not visible in php-mode
@ 2010-08-13 23:45 Tim Johnson
2010-08-14 0:40 ` Tim Johnson
0 siblings, 1 reply; 2+ messages in thread
From: Tim Johnson @ 2010-08-13 23:45 UTC (permalink / raw)
To: help-gnu-emacs
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?
thanks
--
Tim
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: imenu :: menu not visible in php-mode
2010-08-13 23:45 imenu :: menu not visible in php-mode Tim Johnson
@ 2010-08-14 0:40 ` Tim Johnson
0 siblings, 0 replies; 2+ messages in thread
From: Tim Johnson @ 2010-08-14 0:40 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-14 0:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-13 23:45 imenu :: menu not visible in php-mode Tim Johnson
2010-08-14 0:40 ` Tim Johnson
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).