Silent init hooks if noninteractive
This commit is contained in:
parent
dd947b5eae
commit
6f5b853cc2
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
ability to invoke the debugger in debug mode."
|
||||
(condition-case-unless-debug ex
|
||||
(funcall fn)
|
||||
(if noninteractive
|
||||
(quiet! (funcall fn))
|
||||
(funcall fn))
|
||||
('error
|
||||
(lwarn hook :error
|
||||
"%s in '%s' -> %s"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue