Safely load 'custom-file'.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 04 Feb 2010 00:06:11 +0200
changeset 304 69d3124ca29c
parent 303 1fee37963d5a
child 305 732fe4548ed4
Safely load 'custom-file'.
.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))