From: Peng Li Date: Thu, 23 Jun 2016 18:03:05 +0000 (+0800) Subject: emacs - fix load custom file error X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=0ab6287cc12e57f0552effa83659613d82351ddd;p=dotfiles.git emacs - fix load custom file error --- diff --git a/emacs.d/config.org b/emacs.d/config.org index b087ec4..082b9ba 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -69,7 +69,8 @@ set custom file #+BEGIN_SRC emacs-lisp :tangle yes :results silent (setq custom-file "~/.emacs.d/custom.el") - (load custom-file) + (if (file-exists-p custom-file) + (load custom-file)) #+END_SRC