(require-package 'todochiku)

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

(defcustom terminal-notifier-path
  "/Applications/terminal-notifier.app/Contents/MacOS/terminal-notifier"
  "Path to the terminal-notifier app for Mountain Lion, if installed.
See https://github.com/alloy/terminal-notifier for more information.")

(when (and *is-a-mac* (file-executable-p terminal-notifier-path))
  (defadvice todochiku-get-arguments (around todochiku-terminal-notifier activate)
    (setq ad-return-value
          (list "-title" title "-message" message "-activate" "org.gnu.Emacs")))
  (setq todochiku-command terminal-notifier-path))

(defadvice todochiku-message (around check-for-helper activate)
  "Suppress message attempts when the `todochiku-command' program is missing."
  (when (executable-find todochiku-command)
    ad-do-it))

(provide 'init-growl)

(require-package 'todochiku)

(defadvice todochiku-message (around check-for-helper activate)
  "Suppress message attempts when the `todochiku-command' program is missing."
  (when (executable-find todochiku-command)
    ad-do-it))

(setq todochiku-icons-directory
      (expand-file-name "site-lisp/todochiku-icons" user-emacs-directory))

(defcustom terminal-notifier-path
  "/Applications/terminal-notifier.app/Contents/MacOS/terminal-notifier"
  "Path to the terminal-notifier app for Mountain Lion, if installed.
See https://github.com/alloy/terminal-notifier for more information.")

(when (and *is-a-mac* (file-executable-p terminal-notifier-path))
  (defadvice todochiku-get-arguments (around todochiku-terminal-notifier activate)
    (setq ad-return-value
          (list "-title" title "-message" message "-activate" "org.gnu.Emacs")))
  (setq todochiku-command terminal-notifier-path))

(require 'todochiku) ;; growl notifications when compilation finishes

(provide 'init-growl)

Change initialisation order for todochiku to better handle missing commands
Change initialisation order for todochiku to better handle missing commands

Fixes #140

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