/SPU

SPU - Emacs Silent Package Upgrader

Primary LanguageEmacs LispGNU General Public License v3.0GPL-3.0

MELPA

SPU

SPU stands for Silent Package Upgrader.

It does what its name says.

Introduction

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.

Requirement

  • Emacs 24.4

Dependency

Usage

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.


_______

Contacts

mola@molamola.xyz

If you find any bugs or have any suggestions, you can make a pull request, report an issue or send me an email.




Support

paypal paypal




License