Add doom/info command

This copies debug information about the current session of Doom Emacs in
the clipboard, which folks can use to include system information with
their bug reports!
This commit is contained in:
Henrik Lissner 2017-12-31 17:49:27 -05:00
parent c550851500
commit 5048b72c12
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

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