Refactor doom/info

This commit is contained in:
Henrik Lissner 2017-12-31 18:32:34 -05:00
parent 79ca2b2911
commit 189e401197
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -92,9 +92,9 @@ selection of all minor-modes, active or not."
"Collects information about this session of Doom Emacs and copies it to the "Collects information about this session of Doom Emacs and copies it to the
clipboard. Helpful when filing bug reports!" clipboard. Helpful when filing bug reports!"
(interactive) (interactive)
(message "Producing information about your system...")
(with-temp-buffer (with-temp-buffer
(message "Producing information about your system...")
(call-process (expand-file-name "bin/doom-doctor" doom-emacs-dir) nil t) (call-process (expand-file-name "bin/doom-doctor" doom-emacs-dir) nil t)
(ansi-color-apply-on-region (point-min) (point-max)) (ansi-color-apply-on-region (point-min) (point-max))
(kill-new (buffer-string))) (kill-new (buffer-string))
(message "Copied to clipboard!")) (message "Done. Copied to clipboard!")))