Add a basic version check

This commit is contained in:
Bozhidar Batsov 2013-09-05 14:24:38 +03:00
parent 98e453c640
commit b1caa73aa3

View file

@ -38,6 +38,9 @@
(message "Prelude is powering up... Be patient, Master %s!" current-user) (message "Prelude is powering up... Be patient, Master %s!" current-user)
(when (version< emacs-version "24.1")
(error "Prelude requires at least GNU Emacs 24.1"))
(defvar prelude-dir (file-name-directory load-file-name) (defvar prelude-dir (file-name-directory load-file-name)
"The root dir of the Emacs Prelude distribution.") "The root dir of the Emacs Prelude distribution.")
(defvar prelude-core-dir (expand-file-name "core" prelude-dir) (defvar prelude-core-dir (expand-file-name "core" prelude-dir)