I githubbed the code from the previous post. It's now at http://github.com/tekai/tools. Also
php-run-string has been fixed.
Thursday, March 25, 2010
Tuesday, March 16, 2010
Some interesting functions if you happen to write PHP code in emacs:
php-mode.el with some modifications:
;; - php-check-syntax-and-goto-line bound to F12 ;; - changed the find-tag-default function to differentiate between ;; methods and functions BUT this means you need to use tag-fucker.php ;; instead of etags/ctags/whatever
php.el Some extra php related elisp code. Them gem of it is
update-tag-file which does what it says on saving a file (
Those files need a bit of shell & elisp knowledge if you want to use them. Go and hack away. If you like/use/modified it pls leave a comment.
- Add a hook to save buffer
- run script to remove file from TAGS
- run tag-fker to add stuff from buffer
- run some tags function in emacs to make adopt changes in TAGS
Update: check out https://github.com/tekai/tools/blob/master/php.el#L45 for an implementation