(require 'todochiku) ;; growl notifications when compilation finishes
(setq todochiku-icons-directory (expand-file-name "~/.emacs.d/site-lisp/todochiku-icons"))

(provide 'init-growl)

(require 'todochiku) ;; growl notifications when compilation finishes
(setq todochiku-icons-directory (expand-file-name "~/.emacs.d/site-lisp/todochiku-icons"))


;;----------------------------------------------------------------------------
;; Use terminal-notifier in OS X Mountain Lion
;; https://github.com/alloy/terminal-notifier (Install in /Applications)
;;----------------------------------------------------------------------------
(setq terminal-notifier-path
      "/Applications/terminal-notifier.app/Contents/MacOS/terminal-notifier")

(defadvice todochiku-get-arguments (around todochiku-nc)
  (setq ad-return-value
        (list "-title" title "-message" message "-activate" "org.gnu.Emacs")))

(when (file-executable-p terminal-notifier-path)
  (setq todochiku-command terminal-notifier-path)
  (ad-activate 'todochiku-get-arguments))


(provide 'init-growl)

Add support for "Notification Center" in OS X Mountain Lion using terminal-notifier
Add support for "Notification Center" in OS X Mountain Lion using terminal-notifier

zhuoyikang/emacs.d,caoyuanqi/emacs.d,kongfy/emacs.d,jthetzel/emacs.d,benkha/emacs.d,farzadbekran/emacs.d,roxolan/emacs.d,braveoyster/emacs.d,pairyo/emacs.d,kindoblue/emacs.d,wegatron/emacs.d,LittleLmp/emacs.d,ruiyang/emacs.d,krzysz00/emacs.d,fengxl/emacs.d,modkzs/emcs.d,zuoshifan/emacs.d,svenyurgensson/emacs.d,lujianmei/emacs.d,zuoshifan/emacs.d,jachinpy/emacs.d,qinshulei/emacs.d,Jadecity/PurcellEmacs.d,YangXin/emacs.d,carlosliu/emacs.d,46do14/emacs.d,jachinpy/emacs.d,zuoshifan/emacs.d,me020523/emacs.d,jhpx/emacs.d,farzadbekran/emacs.d,sgarciac/emacs.d,emuio/emacs.d,DarkThrone/emacs.d,baohaojun/emacs.d,renatoriccio/emacs.d,LKI/emacs.d,hophacker/emacs.d,danfengcao/emacs.d,jkaessens/emacs.d,cyjia/emacs.d,zuoshifan/emacs.d,dongdonghu/.emacs.d,Enzo-Liu/emacs.d,Guoozz/emacs.d,dcorking/emacs.d,Shanicky/emacs.d,YangXin/emacs.d,shafayetkhan/emacs.d,lust4life/emacs.d,zuoshifan/emacs.d,lromang/emacs.d,whizzzkid/emacs.d,arthurl/emacs.d,atreeyang/emacs.d,gsmlg/emacs.d,hkcqr/emacs.d,bibaijin/emacs.d,mmqmzk/emacs.d,zuoshifan/emacs.d,dhanunjaya/emacs.d,qianwan/emacs.d,ruiyang/emacs.d,haodaivshen/emacs.d,zuoshifan/emacs.d,zuoshifan/emacs.d,farzadbekran/emacs.d,Werewolflsp/emacs.d,zuoshifan/emacs.d,exclamaforte/emacs.d,scorpionis/emacs.d,zhaotai/.emacs.d,ilove0518/emacs.d,blueabysm/emacs.d,boblannon/emacs.d,farzadbekran/emacs.d,purcell/emacs.d,farzadbekran/emacs.d,ernest-dzf/emacs.d,blueseason/emacs.d,zenith-john/emacs.d,cjqw/emacs.d,Togal/emacs.d,alant/emacs.d,mpwang/emacs.d,wenpincui/emacs.d