emacs 24 automatically loads package.el
add flycheck
Only start emacs server in gui mode.