Load-library alternative for Emacs using ido-completing-read
.
- Quickstart
- command
ido-load-library
- command
ido-load-library-find
- Bugs
- Compatibility and Requirements
(require 'ido-load-library)
;; execute M-x ido-load-library RET
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)
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:
- Install libraries using ELPA/
package.el
, in which case this assumption always works. - Wait for the cache to expire (7 days).
- Give universal prefix argument to
ido-load-library
to force invalidation of the cache.
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)