fernandoalmeida / auto-package-update.el

Automatically update Emacs packages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

auto-package-update.el

Automatically update Emacs packages.


Build Status MELPA MELPA Stable

This package provides functionality for automatically updating your Emacs packages periodically. It is specially useful for people that work in multiple machines and tend to forget to manually update packages from time to time.

The main idea is that you set a desired periodicity for the updates, and when you start Emacs, the packages will be automatically updated if enough days have passed since the last update.

Requirements

This package was tested for GNU Emacs 24.3 and above. Older Emacsen are not supported yet.

Installation

You can install via MELPA, or manually by downloading auto-package-update.el and adding the following to your init file:

(add-to-list 'load-path "/path/to/auto-package-update")
(require 'auto-package-update)

Usage

If auto-package-update.el is installed properly, you can add the following line to your .emacs.

(auto-package-update-maybe)

This will update your installed packages if there is an update pending.

You can also use the function auto-package-update-now to update your packages at any given time.

Customization

The periodicity (in days) of the update is given by the custom variable auto-package-update-interval. The default interval is 7 days but if you want to change it, all you need is:

(setq auto-package-update-interval 14)

Changelog

1.2 - Refactor for independency on package-menu functions.
1.1 - Support GNU Emacs 24.3.
1.0 - First release.

Function Documentation

(auto-package-update-now)

Update installed Emacs packages.

(auto-package-update-maybe)

Update installed Emacs packages if at least auto-package-update-interval days have passed since the last update.


Markdown README file generated by make-readme-markdown.el

About

Automatically update Emacs packages.


Languages

Language:Emacs Lisp 88.6%Language:Makefile 11.4%