mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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!"))
|
||||
|
Reference in New Issue
Block a user