mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-04 19:29:37 +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))
|
||||
`(if (and ,(or predicate t)
|
||||
,requires-test)
|
||||
(if ,(if (stringp name)
|
||||
`(load ,name t)
|
||||
`(require ',name nil t))
|
||||
(with-elapsed-timer
|
||||
,(format "Loading package %s" name-string)
|
||||
,init-body
|
||||
,config-body
|
||||
t)
|
||||
(message "Could not load package %s" ,name-string))))))))
|
||||
(with-elapsed-timer
|
||||
,(format "Loading package %s" name-string)
|
||||
(if (not ,(if (stringp name)
|
||||
`(load ,name t)
|
||||
`(require ',name nil t)))
|
||||
(message "Could not load package %s" ,name-string)
|
||||
,init-body
|
||||
,config-body
|
||||
t))))))))
|
||||
|
||||
(put 'use-package 'lisp-indent-function 1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue