There’s a feature on Emacs identica-mode that I haven’t documented or written about before and its been there for quite some time.
Its very nice to have notifications when you get new updates on your timeline. I’ve seen it on other clients like TweetDeck. So I made a hook for Emacs to execute some code after it has fetched new dents. With this you can call any notification system to show a message of the new dents.
Here’s the code I’ve been using to show new notice count on KDE4 notification system (similar code can be used for Gnome’s notification system):
;; KDE 4 Notification of new dents (add-hook 'identica-new-dents-hook (lambda () (let ((n identica-new-dents-count)) (start-process "identica-notify" nil "kdialog" "--title" "Emacs Identica-mode New dents" "--passivepopup" (format "You have %d new dent%s" n (if (> n 1) "s" "")) "3" ))))
I haven’t tried to do the same in Mac OS with Growl but I guess its also possible. If someone has the code for that, please share it in the comments. You can also use ToDoChiKu as a universal notification system.
**Update** Jason McBrayer has posted the elisp code to use identica-mode with ToDoChiKu on his blog.
I hope you like this hook feature and please let me know other ways to use the hook, or if any other hook is usefull to have.