Find file
Fetching contributors…
Cannot retrieve contributors at this time
71 lines (48 sloc) 2.01 KB

Build Status


Load-library alternative for Emacs using ido-completing-read.


(require 'ido-load-library)

;; execute M-x ido-load-library RET

command ido-load-library

Ido-load-library is an alternative to load-library which uses ido-completing-read for completion against all available libraries in your load-path.

The interactive command ido-load-library is provided, though not bound to any key. It can be executed via

M-x ido-load-library

or bound via something like

(define-key global-map (kbd "C-c l") 'ido-load-library)

or safely aliased to load-library

(defalias 'load-library 'ido-load-library)

command ido-load-library-find

The interactive command ido-load-library-find is also provided. Like ido-load-library, it searches your load-path, but instead of loading the selected library, it visits the file in a buffer.


When invalidating the disk cache, ido-load-library only checks whether load-path has changed, not whether new files were added to existing paths. Workarounds:

  1. Install libraries using ELPA/package.el, in which case this assumption always works.
  2. Wait for the cache to expire (7 days).
  3. Give universal prefix argument to ido-load-library to force invalidation of the cache.

Compatibility and Requirements

GNU Emacs version 24.4-devel     : yes, at the time of writing
GNU Emacs version 24.3           : yes
GNU Emacs version 23.3           : yes
GNU Emacs version 22.3 and lower : no

Uses if present: persistent-soft.el (Recommended)