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:
parent
c550851500
commit
5048b72c12
1 changed files with 12 additions and 0 deletions
|
@ -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!"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue