Simplified emacs major version checking