2009-11-04 Wed
twittering-mode.el [emacs][Mac]
今更ながらTwitterやってみる。
モバイルはiPhoneで良いとして、デスクトップのクライアントは…emacsでいいや。
ということでtwittering-mode.elをインストール。
EmacsWikiを参考に、設定はこんな感じ。
growlの通知はもうちょっといろいろ出来るかな?
- twittering-mode
モバイルはiPhoneで良いとして、デスクトップのクライアントは…emacsでいいや。
ということでtwittering-mode.elをインストール。
EmacsWikiを参考に、設定はこんな感じ。
;; twittering-mode
(load "twittering-mode.el")
(require 'twittering-mode)
(setq twittering-username "username")
;(setq twittering-password "twitter password here") ; This is optional
(twittering-icon-mode) ; Show icons (requires wget)
(setq twittering-timer-interval 300) ; Update your timeline each 300 seconds (5 minutes)
(setq twittering-tmp-dir "~/.emacs.d/tmp") ; Directory to store buddy icons
(add-hook 'twittering-new-tweets-hook
(lambda ()
(let ((n twittering-new-tweets-count))
(start-process "twittering-notify" nil "growlnotify"
"--image" "~/Library/Application Support/Google/Quick Search Box/PlugIns/TwitterSearch.hgs/Contents/Resources/Twitter.tiff"
"-t" "New tweets"
"-m"
(format "You have %d new tweet%s"
n (if (> n 1) "s" ""))))))
Macということで、growlnotifyで新着件数を知らせるようにもしてみた。アイコンはGoogle Quick Search BoxのTwitter Search Pluginのを。growlの通知はもうちょっといろいろ出来るかな?
- twittering-mode


