diff options
author | John Turner <jturner.usa@gmail.com> | 2023-03-26 00:17:24 -0400 |
---|---|---|
committer | John Turner <jturner.usa@gmail.com> | 2023-03-26 00:20:56 -0400 |
commit | 7f1fc2f936fb66ae3720863432a0a8266a2e5003 (patch) | |
tree | b1e132a556f118c06eaad993c62adbe20f8aecf0 | |
parent | 2518c94484157c7daf493b70ea3d1621c38009c8 (diff) | |
download | emacs.d-7f1fc2f936fb66ae3720863432a0a8266a2e5003.tar.gz |
created check-init.el script
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | check-init.el | 8 |
2 files changed, 9 insertions, 0 deletions
@@ -2,6 +2,7 @@ !/.gitignore !/init.el !/early-init.el +!/check-init.el !/themes !/init !/lisp diff --git a/check-init.el b/check-init.el new file mode 100755 index 0000000..0723e82 --- /dev/null +++ b/check-init.el @@ -0,0 +1,8 @@ +#!/usr/bin/env -S emacs --script + +(kill-emacs (condition-case nil + (progn + (load (file-name-concat user-emacs-directory "early-init.el")) + (load (file-name-concat user-emacs-directory "init.el"))) + (error 1) + (:success 0))) |