I've seen a number of questions posted on how to get speedbar to work
with php-mode inside emacs.  This is a hack that piggybacks on the
semantic bovinator functionality with java which seems to work well
with php classes.

This requires that you have the semantic bovinator from:
<http://cedet.sourceforge.net/semantic.shtml>.

Add the following to your .emacs:
;;;;;;;;;;;;;;
(speedbar-add-supported-extension ".php") ; not necessarily required
(add-hook 'php-mode-user-hook 'semantic-default-java-setup)
(add-hook 'php-mode-user-hook
          (lambda ()
            (setq imenu-create-index-function
'semantic-create-imenu-index)
            ))
;;;;;;;;;;;;;;;

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to