There are several packages for Emacs which let you send notifications to Growl but afaik none which implements sending notifications over the wire, implementing GNTP (Growl Notification Protocol). Given that it's not very hard to implement I put together an implementation. It's not very complete, it has no encryption, lacks error handling, it just does what I need, register notifications with icons and sending them.
Showing posts with label elisp. Show all posts
Showing posts with label elisp. Show all posts
Tuesday, March 26, 2013
Tuesday, March 16, 2010
emacs/php code
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
tag-fucker.php (rename it to use it). A CLI script which generates TAGS/etags stuff used in my php-mode. Much slower than etags but maybe it can by compiled by HipHop.
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 ((php-)after-save-hook
)
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.
Ideapad: incremental tags
- 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
Subscribe to:
Posts (Atom)