Created
February 28, 2020 15:17
-
-
Save joseluisq/9ab6487aac37d14ced6683b2a8a3c3e5 to your computer and use it in GitHub Desktop.
Checking for a specific Emacs version on .emacs file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Emit a warning when Emacs version is not greater or equal to 24.1 | |
(when (and (<= emacs-major-version 24) (< emacs-minor-version 1)) | |
(warn (format "\ | |
Emacs v%s.%s is not supported for this configuration. Try to upgrade to v24.1+." emacs-major-version emacs-minor-version))) | |
;; Continue installing MELPA packages etc... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment