Effortlessly download, install, and update Elisp files from the web or from a local buffer. Easily install packages from the Emacswiki ElispArea (with auto-complete of package name, and easy update of selected packages). Optionally view changes from previous versions of packages before installation.

Please send suggestions and bug reports to rubikitch, he’s the new maintainer. Thanks! – AndyStewart

What is Auto Install

When you install an Emacs lisp file for use with Emacs, you generally have to navigate some or all of the the following steps:

  1. Find the Elisp file. Locate it on the web, either from a private site or from a code repository such as the EmacsWiki ElispArea or gist.
  2. Download the file.
  3. Install all related files Some extension (such as Icicles) have many parts. Installing those packages one by one can be painful.
  4. View differences with the old version. You may want to view the differences between the new and old versions before you update.
  5. Save the Elisp file. You might keep your Elisp files organized into folders by categories, but this causes its own problems: if you download a new elisp file, you need to make sure you’re deleting the old one, a hassle if the file is located deep in a storage directory.
  6. Install the Elisp file by requiring it from your .emacs
  7. Keep the Elisp file updated.

Is there any way to do all of this automatically? Yes, there is. Auto Install can download, install and update your collection of Elisp files automatically.

The biggest difference between auto-install.el and most other Elisp installers is that auto-install.el can download Elisp files asynchronously directly from Emacs, without the help of any external download program.

Installation of auto-install.el

For example, put it into ~/elisp/.
Then add the following to your ~/.emacs:
      (add-to-list 'load-path (expand-file-name "~/elisp"))
      (require 'auto-install)
      (setq auto-install-directory "~/.emacs.d/auto-install/")
If you don’t set this,
will be used as the default, and will be created as needed.
      (auto-install-update-emacswiki-package-name t)
      (setq url-proxy-services '(("http" . "localhost:8339")))
You can add below to your ~/.emacs for compatibility install-elisp.el:

Usage Examples:

    1. M-x auto-install-from-emacswiki RET, input “multi-term.el”.
    2. After the AutoInstall download command is complete you can use the following commands:
      1. Type “C-c C-c” to continue the install process.
      2. Type “C-c C-d” to view differences from the old version. This does nothing if you have no older version.
      3. Type “C-c C-q” to abort the install process.
    1. M-x auto-install-batch RET, input “icicles”.
    2. And then it will download and install all Icicles packages.
For more supported packages, see BatchInstallList].
(setq auto-install-save-confirm nil)
This has all the risks and benefits you might expect from the effortless installation of software which is hosted on a public Wiki. 😊 You’re on your own here. Proceed with caution.

Command List


And all options below can customized by: M-x RET customize-group RET auto-install RET.


Some extensions (such as Icicles) have many packages need installing (16, to be exact), and installing those packages one by one is painful.
And some website have a max connect limit within a period of time ( allowed 10 connects in 20 seconds), you can use command ‘auto-install-batch’ to install those packages automatically, It will automatically control the delay time to avoid failed downloads.
Note that at the moment, there can be trouble if with a batch install when you have auto-install-save-confirm and auto-install-install-confirm set (as you probably should normally). This is because AutoInstall lets you check each file in the package one at a time, but then compiles it immediately after you tell it to ‘continue’ (with C-c C-c). But if it hasn’t saved the other parts of the package yet, you could get a compile error. The current workaround involves disabling the install confirmation for complex packages (at least with icicles).
By default, if a file that you download does not exist on your system, the file is downloaded to the value of “auto-install-directory”. But if you have a file with the same name in your load-path, “auto-install” will try to download to that same directory and replace the file there.
“auto-install-from-url’ remembers previous installations, so if your search is the same as the previous search, you won’t need to type anything, just hit RETURN.
‘auto-install-from-emacswiki’ will complete the package name from the a downloaded from ‘EmacsWiki’ (if auto-install has retrieved this list).
You can use command “auto-install-from-library” to update a special library. By default, it updates from EmacsWiki,
if it can’t find a match in “auto-install-filter-url”.
“auto-install-from-dired” can install marked files marked in dired. You can mark many files in dired and then use “auto-install-from-dired” to asynchronously download those files in parallel. All installation processes are in the background and won’t conflict with each other.
“auto-install-from-buffer” can save and install the current buffer as a file. You need to input a valid elisp file name. The default name is the current buffer name.
“auto-install-from-emacswiki” and “auto-install-from-library” can pick up file name around point, you can move the cursor to file name, and call those commands, then just hit RET for install.
All of the above functions support a filename filter. You can input any url to download an elisp file. If the file name suffix is `.el’, it will install the downloaded file automatically. Otherwise, it won’t install it unless you input a valid elisp file name.
By default, command ‘auto-install-from-emacswiki’ will initialize the current symbol as the default value, if default value is you want, just hit RET. Go on be lazy!


Put Lisp:anything.el and Lisp:anything-auto-install.el in your load-path, then add
        (require 'anything-auto-install)
in your ~/.emacs
      1. You can use the command ‘anything-auto-install-from-emacswiki’ to install a package from EmacsWiki. If you don’t see anything for completion, just wait until AutoInstall updates the package list and try again.
      2. You can use the command ‘anything-auto-install-from-library’ to update library.
      3. Or you can integrate this package with Anything, just setup like this:
            (setq anything-sources
      1. When you use the Anything interface, you can type “TAB” to switch to the second-level interface for more commands on the same candidate.



Batch Install Supported Extensions

If anyone would like an auto-install.el batch install for their own packages, just add it below. I’m happy to add it. – AndyStewart

Other Elisp Installers

See also: ELPA, DELPS, el-get, EmacsLispList, and InstallElisp


It is very unfortunate was then when I installed and configured auto-install and tried to type M-x auto-install-from-emacswiki, what I got was just an error message:

        Making completion list...
        Contacting host:
        error in process sentinel: url-http-async-sentinel: writing to process: transport endpoint is not connected,
        error in process sentinel: writing to process: transport endpoint is not connected,

I’ve tried to load the following url with both FireFox and w3m, they all works fine.;raw=1

And you know the worst thing is that I cannot even get any information about this from It seems that I am the only person who is so sad to meet this problem. 😟.

Does any one has any idea to help me? Thanks in advance. This is my Emacs and Cygwin version information:

GNU Emacs 23.2.1 (i686-pc-cygwin, GTK+ Version 2.18.6) of 2010-05-08 on laptop
uname -a
CYGWIN_NT-5.1 IBM-0ADFC3DF773 1.7.5(0.225/5/3) 2010-04-12 19:07 i686 Cygwin

– David Young

Sometimes url-retrieve fails I know. But I do not figure out why. Try (setq auto-install-use-wget t) .

If you got any trouble, send a bug report via M-x auto-install-send-bug-report .


(setq auto-install-use-wget t) works. Thanks a lot.

– David Young

Are there any plans to get this into Emacs proper? It seems fantasically useful if you keep a lot of Emacs around. Or even if it could be put into ELPA.

Although, I can’t actually see how it causes auto-installed files to be reloaded on startup? This is something I really want… so I wrote a patch:

;; Automatic loading

(defcustom auto-install-inhibit-startup-loading nil
  "Controls whether auto-installed packaged are loaded at startup.

If set to 't this inhibts the automatic loading of auto-load
files at startup. 

Otherwise all files in the 'auto-install-directory' are loaded
when auto-install is required."
  :type 'string
  :group 'auto-install)

(defun auto-install-on-startup ()
  "Require everything in the auto-install directory."
  (when (not auto-install-inhibit-startup-loading)
    (mapc (lambda (direntry)
            (let ((path (concat
                         (file-name-as-directory auto-install-directory)
              (when (and (file-readable-p path) 
                         (not (file-directory-p path))
                         (equal "el" (file-name-extension path)))
                (load-file path))))
          (directory-files auto-install-directory))))

;; Attempt to load all the auto-install files

Damn. I also seem to have trouble updating, ie: doing auto-install-from-emacswiki for a package that I’ve already done that with.


AutoInstall Suggestions (with code to help)

I like AutoInstall but I’d like it to be a bit more powerful (“bit more powerful” is secret code for “complaining”). So, having learned that complaining means volunteering, I’d like to make some suggestions and offer some code. It’s your package rubikitch so no offense if you don’t like my ideas, don’t have time to use them, etc… And definitely feel free to delete this from your page or reword it. If you do leave it, please reword it to something that is more appropriate. This is more of an invitation for you to come over to the AutoInstallPlayGround than something that belongs on the page long-term.


PS: No category on the page bottom…