summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar √Čtienne Deparis 2021-02-19 23:59:46 +0100
committerGravatar √Čtienne Deparis 2021-02-19 23:59:46 +0100
commit25644acee6ab9627bd7489a76fc34b3bcd55aaa2 (patch)
tree5fc6d3d6310b597e68c4b25732e3fbb3f2f1902a
parent2a349787f37027b0f0b5515bcc71696a05a182b6 (diff)
downloademacs.d-master.tar.gz
emacs.d-master.tar.xz
emacs.d-master.zip
Avoid a crash at first install when custom file does not existHEADmaster
-rw-r--r--init.org2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.org b/init.org
index 8c0fb14..15756e7 100644
--- a/init.org
+++ b/init.org
@@ -278,7 +278,7 @@ including files we always need, even in a terminal, with the
#+begin_src emacs-lisp :tangle yes :exports code
(add-hook 'after-init-hook #'(lambda ()
(let ((gc-cons-threshold most-positive-fixnum))
- (load custom-file) ;; Load emacs custom file
+ (when (file-exists-p custom-file) (load custom-file)) ;; Load emacs custom file
(load-file (expand-file-name "beauty.elc" user-emacs-directory))
(load-file (expand-file-name "utils.elc" user-emacs-directory))
(load-file (expand-file-name "various-comp-lang.elc" user-emacs-directory))