betweenGo

optional require in .emacs

by Frank Kim on Apr.17, 2008, under Miscellaneous

In my .emacs I was loading the subversion plugin.

(require 'psvn)

Unfortunately on systems that don’t have the subversion plugin Emacs would barf on this line and stop loading the rest of the .emacs file.

Fortunately someone else had asked a similar question, alternative to (require …), on gnu.emacs.help.

Based on that thread I updated my .emacs with this code.

(condition-case nil
  (require 'psvn)
  (error (message "Subversion plugin unavailable, skipping load ...")))


  • Share/Bookmark

Related posts:

  1. Difference between require and require_dependency
  2. Newline problems with Subversion
  3. Subversion Branching
  4. ruby: no such file to load — ubygems (LoadError)
  5. Subversion on Dreamhost


Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!