The free variable autopair-mode is referenced in autopairs-global-mode-emacs24-hack, so autopair-mode should be defined before the hack.
Fix warning: reference to free variable `autopair-mode'
Thanks! Any reason this can't be merged, @capitaomorte?
Sorry, this pull request slipped through somehow. Looks ok, you moved the define-minor-mode up some lines right? I think it's ok...