Skip to content

Instantly share code, notes, and snippets.

@exu
Created Apr 22, 2013
Embed
What would you like to do?
My Emacs .ctags config file for PHP 5.4 based projects. Save it in project directory. (It needs exuberant-ctags package). I'm using it with etags-select package
-e
-f ./TAGS
--recurse
--languages=PHP
--exclude=.svn
--exclude=.git
--exclude="*/_*cache/*"
--exclude="*/_*logs{0,1}/*"
--exclude="*/_*data/*"
--totals=yes
--tag-relative=yes
--PHP-kinds=+cif-jcvd
--regex-PHP=/^abstract class ([^ ]*)/\1/c/
--regex-PHP=/^interface ([^ ]*)/\1/c/
--regex-PHP=/^trait ([^ ]*)/\1/c/
--regex-PHP=/(public |static |abstract |protected |private )+ function +([^ \(]*)/\2/f/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment