Change doom-ansi-apply, print! & format!
Color let-functions no longer take format string arguments. e.g. (format! (red "Hello %s" "world")) Becomes (format! (red "Hello %s") "world") The same goes for print!. Also, doom-ansi-apply now takes two arguments instead of three. Also merges doom-message-{fg,bg,fx} into doom-ansi-alist, and reduces backtrace noise when errors originate from inside these macros.
This commit is contained in:
parent
f7ad520ee0
commit
4d10c28c37
5 changed files with 60 additions and 68 deletions
|
@ -17,14 +17,14 @@
|
|||
`(condition-case-unless-debug e
|
||||
(progn ,@body)
|
||||
('user-error
|
||||
(print! (bold (red " NOTICE: %s" e))))
|
||||
(print! (bold (red " NOTICE: %s")) e))
|
||||
('file-error
|
||||
(print! (bold (red " FILE ERROR: %s" (error-message-string e))))
|
||||
(print! (bold (red " FILE ERROR: %s")) (error-message-string e))
|
||||
(print! " Trying again...")
|
||||
(quiet! (doom-refresh-packages-maybe t))
|
||||
,@body)
|
||||
('error
|
||||
(print! (bold (red " FATAL ERROR: %s\n Run again with the -d flag for details" e))))))
|
||||
(print! (bold (red " FATAL ERROR: %s\n Run again with the -d flag for details")) e))))
|
||||
|
||||
(defun doom--refresh-pkg-cache ()
|
||||
"Clear the cache for `doom-refresh-packages-maybe'."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue