mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 19:59:38 +00:00
Have loading timer include time to require
This commit is contained in:
parent
bf6c23044b
commit
4bd492f606
1 changed files with 9 additions and 9 deletions
|
@ -305,15 +305,15 @@
|
||||||
t))
|
t))
|
||||||
`(if (and ,(or predicate t)
|
`(if (and ,(or predicate t)
|
||||||
,requires-test)
|
,requires-test)
|
||||||
(if ,(if (stringp name)
|
(with-elapsed-timer
|
||||||
`(load ,name t)
|
,(format "Loading package %s" name-string)
|
||||||
`(require ',name nil t))
|
(if (not ,(if (stringp name)
|
||||||
(with-elapsed-timer
|
`(load ,name t)
|
||||||
,(format "Loading package %s" name-string)
|
`(require ',name nil t)))
|
||||||
,init-body
|
(message "Could not load package %s" ,name-string)
|
||||||
,config-body
|
,init-body
|
||||||
t)
|
,config-body
|
||||||
(message "Could not load package %s" ,name-string))))))))
|
t))))))))
|
||||||
|
|
||||||
(put 'use-package 'lisp-indent-function 1)
|
(put 'use-package 'lisp-indent-function 1)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue