SPU stands for Silent Package Upgrader.
It does what its name says.
There are numerous packages for upgrading packages. However, I have not met one that can suppress the freezing during Contacting Host: elpa.gnus.org:80
and Contacting Host: melpa.org:433
. The process takes about 5 to 10 seconds. I always believe from the end user point of view, the UI freezing for 1 second is long, 2 seconds is too long, longer than 3 seconds is unacceptable. So I wrote this package.
The second purpose of writing this package is to demonstrate the use of timp.
- Emacs 24.4
- signal.el - https://github.com/mola-T/signal
- timp.el - https://github.com/mola-T/timp
Put this in your init
file. This will upgrade packages daily.
(spu-package-upgrade-daily)
If you use use-package
, you can do:
(use-package spu
:defer 5 ;; defer package loading for 5 second
:config (spu-package-upgrade-daily))
There is an on demand interactive upgrade package command M-x spu-package-upgrade
. You may want to make a keybind.
If you are uncomfortable with the silent package upgrade (Although I think no one will inspect the source code before they upgrade a package), you can add (setq spu-require-confirm-upgrade-package t)
to your init
file.
To view the package upgrade report, you can do M-x spu-view-upgrade-log
.
_______
If you find any bugs or have any suggestions, you can make a pull request, report an issue or send me an email.
- Copyright (C) 2015-2016 Mola-T
- Author: Mola-T Mola@molamola.xyz
- URL: https://github.com/mola-T/spu
- GNU GENERAL PUBLIC LICENSE