Created
May 27, 2012 11:15
-
-
Save cvmat/2806295 to your computer and use it in GitHub Desktop.
Tweet notification with the text.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun my-notify-tweets () | |
(mapcar (lambda (tweet) | |
(let ((text (cdr (assq 'text tweet))) | |
(user (cdr (assq 'user-name tweet)))) | |
(start-process "twittering-notify" nil "notify-send" | |
"-i" "/usr/share/pixmaps/gnome-emacs.png" | |
(format "A new tweet from %s" user) | |
text))) | |
;; You should replace `twittering-rendered-new-tweets' with | |
;; `twittering-new-tweets-statuses' for 2.0.0. | |
twittering-rendered-new-tweets)) | |
;; You should replace `twittering-new-tweets-rendered-hook' with | |
;; `twittering-new-tweets-hook' for 2.0.0. | |
(add-hook 'twittering-new-tweets-rendered-hook 'my-notify-tweets) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment