commit 320d362e26549ec4fad4c2d1e80da201a34e6805
parent 0399e0be72fcc33b279890452aca92b9f8a89c9c
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Thu, 19 Oct 2017 23:49:11 -0500
Now creates "custom.el" if none found.
Diffstat:
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/README.org b/README.org
@@ -66,9 +66,11 @@ Solarized light or monokai.
#+END_SRC
** Customize Settings
-Save customized settings in a seperate file than =init.el=.
+Save customized settings in a seperate file than =init.el=. Create the customization file if none found.
#+BEGIN_SRC emacs-lisp
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
+ (unless (file-exists-p custom-file)
+ (write-region "" "" custom-file))
(load custom-file)
#+END_SRC
diff --git a/init.el b/init.el
@@ -11,6 +11,6 @@
;; Load my configs
;; ------------------------------------------------------------------------
-(org-babel-load-file (expand-file-name
- "~/.emacs.d/README.org"
- user-emacs-directory))
+(org-babel-load-file (expand-file-name
+ "~/.emacs.d/README.org"
+ user-emacs-directory))