fixed emacs init bug on emacs24

emacs 24 would fail to detect that global linue mode was installed and
the init would crash.