From 514b3abfc33eb6b0e2eecec5fe6cae35ac1dbbcd Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Wed, 24 Nov 2021 09:00:47 -0500 Subject: update setup code --- emacs/.doom.d/init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'emacs/.doom.d/init.el') diff --git a/emacs/.doom.d/init.el b/emacs/.doom.d/init.el index 4c04ad3..e2ea82f 100644 --- a/emacs/.doom.d/init.el +++ b/emacs/.doom.d/init.el @@ -13,7 +13,9 @@ ;; ;; Alternatively, press 'gd' (or 'C-c g d') on a module to browse its ;; directory (for easy access to its source code). -(load-file "~/.doom.d/init.local.el") +(let ((local-config "~/.doom.d/init.local.el")) + (when (file-exists-p local-config) + (load-file local-config))) (doom! :input ;;chinese -- cgit v1.2.3