From cb15dffbd730af0617fec224289d53ea4682162e Mon Sep 17 00:00:00 2001 From: Nick McCurdy Date: Sat, 16 Dec 2017 14:52:14 -0500 Subject: [PATCH] Render the use-package-report table using Org I noticed that the "Gathering Statistics" instructions for rendering the Org table could be automated for convenience. Now the table is reformatted automatically, and you can still manually sort it. I'm not sorting it by default to maintain the same order of use-package forms for easier troubleshooting. --- lisp/use-package/use-package-core.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el index dad68591cb3..d770be1d1c3 100644 --- a/lisp/use-package/use-package-core.el +++ b/lisp/use-package/use-package-core.el @@ -972,6 +972,9 @@ meaning: (float-time (gethash :preface-secs hash 0)) (float-time (gethash :use-package-secs hash 0)))))) use-package-statistics) + (goto-char (point-min)) + (orgtbl-mode) + (orgtbl-ctrl-c-ctrl-c nil) (display-buffer (current-buffer)))) (defun use-package-statistics-gather (keyword name after) -- 2.39.2