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.
This commit is contained in:
Henrik Lissner 2018-05-25 03:07:19 +02:00
parent 2b8efd6783
commit d7a5f3b997
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -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))))))