[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: prevent function execution on Emacs startup if not connected to inte
Re: prevent function execution on Emacs startup if not connected to internet
Thu, 24 Apr 2014 10:09:07 -0700
Brady Trainor <address@hidden> wrote:
> So I was able to recreate my issue. Your method worked at these
> functions, but then the issue propagates to `require's for packages
> not installed. (Every once in a while I switch OS', and simultaneously
> am sitting down somewhere without an internet connection.)
You could make use of the optional "noerror" argument to `require'. For
instance, (require 'the-package nil t).
Of course, there will still be errors later if you try to use things
from packages that weren't loaded.