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:
parent
2b8efd6783
commit
d7a5f3b997
1 changed files with 2 additions and 1 deletions
|
@ -470,7 +470,8 @@ added, if the file exists."
|
||||||
(if (not (file-exists-p init-file))
|
(if (not (file-exists-p init-file))
|
||||||
(error "%s doesn't exist" short-init-file)
|
(error "%s doesn't exist" short-init-file)
|
||||||
(with-temp-buffer
|
(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)
|
(when (re-search-forward "^\\s-*\\((doom! \\)" nil t)
|
||||||
(goto-char (match-beginning 1))
|
(goto-char (match-beginning 1))
|
||||||
(setq modules (cdr (sexp-at-point))))))
|
(setq modules (cdr (sexp-at-point))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue