Prevent init-file from loading twice

When there is no `custom-file` specified, it defaults to `init-file`.
Both must be loaded, so the `init-file` would be loaded twice. This
only loads `custom-file` if it's *different* from `init-file`.
This commit is contained in:
Christopher League 2020-03-06 10:17:09 -05:00
parent 71e30878b0
commit 70b4ac9676

3
.emacs
View file

@ -121,7 +121,8 @@
;; set a value for custom-file then don't touch it.
(when (not custom-file)
(setq custom-file custom-file-)
(load custom-file))))
(unless (equal custom-file init-file)
(load custom-file)))))
(defun chemacs-check-command-line-args (args)
(if args