use fboundp instead of string-match-p

This commit is contained in:
SteamedFish 2019-02-21 23:22:04 +08:00
parent 483f2a492c
commit 16b7c58da9

View file

@ -9,5 +9,5 @@
(unless (executable-find "cmake") (unless (executable-find "cmake")
(warn! "Couldn't find cmake command. Please install it on your system")) (warn! "Couldn't find cmake command. Please install it on your system"))
(unless (string-match-p "MODULES" system-configuration-features) (unless (fboundp 'module-load)
(error! "You have to compile emacs with MODULES support")) (warn! "You have to compile emacs with MODULES support"))