Refactor how we indent straight's progress output

More work up front, less work in the trenches.
This commit is contained in:
Henrik Lissner 2020-01-01 14:29:40 -05:00
parent 4f676bd218
commit 7a348f8784
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 43 additions and 29 deletions

View file

@ -182,6 +182,19 @@ missing) and shouldn't be deleted.")
(print! (warn "%s is not a valid answer, try again.") answer))
(funcall fn))))))
(defadvice! doom--straight-respect-print-indent-a (args)
:filter-args #'straight-use-package
(cl-destructuring-bind
(melpa-style-recipe &optional no-clone no-build cause interactive)
args
(list melpa-style-recipe no-clone no-build
(if (and (not cause)
(boundp 'doom-format-indent)
(> doom-format-indent 0))
(make-string (1- (or doom-format-indent 1)) 32)
cause)
interactive)))
;;
;;; Bootstrapper