Skip to content

Instantly share code, notes, and snippets.

@exu
Created April 22, 2013 12:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save exu/5434484 to your computer and use it in GitHub Desktop.
Save exu/5434484 to your computer and use it in GitHub Desktop.
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