From d7a5f3b99723f6099c472cdaadcd73a6061f0fa8 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 25 May 2018 03:07:19 +0200 Subject: [PATCH] Fix doom-module-table failing to fetch module list ...because sexp-at-point needs a valid syntax table, and fundamental mode ain't got one. --- core/core-packages.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-packages.el b/core/core-packages.el index d73f14174..faca27409 100644 --- a/core/core-packages.el +++ b/core/core-packages.el @@ -470,7 +470,8 @@ added, if the file exists." (if (not (file-exists-p init-file)) (error "%s doesn't exist" short-init-file) (with-temp-buffer - (insert-file-contents init-file) + (delay-mode-hooks (emacs-lisp-mode)) + (insert-file-contents-literally init-file) (when (re-search-forward "^\\s-*\\((doom! \\)" nil t) (goto-char (match-beginning 1)) (setq modules (cdr (sexp-at-point))))))