]> git.eshelyaron.com Git - emacs.git/commitdiff
Render the use-package-report table using Org
authorNick McCurdy <nick@nickmccurdy.com>
Sat, 16 Dec 2017 19:52:14 +0000 (14:52 -0500)
committerNick McCurdy <nick@nickmccurdy.com>
Sat, 16 Dec 2017 19:54:08 +0000 (14:54 -0500)
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

index dad68591cb37b4c8fa8adc5b0856fa30603cc6a1..d770be1d1c3cd833114990227e7968435d0aece1 100644 (file)
@@ -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)