From 9624595f35f530ec30a11a1a1ca4cd1f2b9383e8 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 14 Jun 2019 18:32:05 +0200 Subject: [PATCH] lang/php: silence premature php-extras warning --- modules/lang/php/config.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/lang/php/config.el b/modules/lang/php/config.el index 98afcd1b1..0dba0138c 100644 --- a/modules/lang/php/config.el +++ b/modules/lang/php/config.el @@ -70,6 +70,10 @@ :config (setq php-extras-eldoc-functions-file (concat doom-etc-dir "php-extras-eldoc-functions")) + ;; Silence warning if `php-extras-eldoc-functions-file' hasn't finished + ;; generating yet. + (defun php-extras-load-eldoc () + (require 'php-extras-eldoc-functions php-extras-eldoc-functions-file t)) ;; Make expensive php-extras generation async (unless (file-exists-p (concat php-extras-eldoc-functions-file ".el")) (message "Generating PHP eldoc files...")