mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Silent init hooks if noninteractive
This commit is contained in:
@ -139,7 +139,9 @@ melodramatic ex-vimmer disappointed with the text-editor status quo."
|
|||||||
is to include more information in the error message, without sacrificing your
|
is to include more information in the error message, without sacrificing your
|
||||||
ability to invoke the debugger in debug mode."
|
ability to invoke the debugger in debug mode."
|
||||||
(condition-case-unless-debug ex
|
(condition-case-unless-debug ex
|
||||||
(funcall fn)
|
(if noninteractive
|
||||||
|
(quiet! (funcall fn))
|
||||||
|
(funcall fn))
|
||||||
('error
|
('error
|
||||||
(lwarn hook :error
|
(lwarn hook :error
|
||||||
"%s in '%s' -> %s"
|
"%s in '%s' -> %s"
|
||||||
|
Reference in New Issue
Block a user