# HG changeset patch # User Oleksandr Gavenko # Date 1265234771 -7200 # Node ID 69d3124ca29c30d2a66e8bdfaf5bb5c581240169 # Parent 1fee37963d5ad4b41f38b01a242938454b7c8fdb Safely load 'custom-file'. diff -r 1fee37963d5a -r 69d3124ca29c .emacs --- a/.emacs Thu Feb 04 00:04:17 2010 +0200 +++ b/.emacs Thu Feb 04 00:06:11 2010 +0200 @@ -39,4 +39,5 @@ (load dot-emacs-post)) (setq custom-file "~/.emacs-custom.el") -(load custom-file) +(if (file-exists-p custom-file) + (load custom-file))