summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorNick McCurdy <nick@nickmccurdy.com>2017-12-16 14:52:14 -0500
committerNick McCurdy <nick@nickmccurdy.com>2017-12-16 14:54:08 -0500
commitcb15dffbd730af0617fec224289d53ea4682162e (patch)
tree16906814599add40efed8671e90d8bffba5a8975 /lisp
parent2d226310f1fb053f9bba5abee101b31b38a919fc (diff)
downloademacs-cb15dffbd730af0617fec224289d53ea4682162e.tar.gz
emacs-cb15dffbd730af0617fec224289d53ea4682162e.tar.bz2
emacs-cb15dffbd730af0617fec224289d53ea4682162e.zip
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.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/use-package/use-package-core.el3
1 files changed, 3 insertions, 0 deletions
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)