An error occurred while loading either your .emacs file or the system-wide lisp/default.el file. For information on how to debug your .emacs file, see section How do I debug a .emacs file?.
It may be the case that you may need to load some package first, or use a hook that will be evaluated after the package is loaded. A common case of this is explained in section Why doesn't this [terminal or window-system setup] code work in my.