|
(cond ((locate-library "bbdb") |
|
(require 'bbdb) |
You could consider rewriting this as
(when (require 'bbdb nil 'noerror)
If bbdb can't be loaded, this returns nil, but if it can (or if bbdb is alreayd loaded), this return bbdb and the rest of the code will be executed.