Error handling in doom macro package loop
This commit is contained in:
parent
78ab53d171
commit
a2d14cd492
1 changed files with 5 additions and 1 deletions
|
@ -17,7 +17,11 @@
|
||||||
(defvar doom-current-font doom-default-font)
|
(defvar doom-current-font doom-default-font)
|
||||||
|
|
||||||
(unless noninteractive
|
(unless noninteractive
|
||||||
,@(mapcar (lambda (pkg) `(require ',pkg))
|
,@(mapcar (lambda (pkg)
|
||||||
|
(let ((lib-path (locate-library (symbol-name pkg))))
|
||||||
|
(unless lib-path
|
||||||
|
(error "Initfile not found: %s" pkg))
|
||||||
|
`(require ',pkg ,(f-no-ext lib-path))))
|
||||||
packages)
|
packages)
|
||||||
(when window-system
|
(when window-system
|
||||||
(require 'server)
|
(require 'server)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue