From 7f1fc2f936fb66ae3720863432a0a8266a2e5003 Mon Sep 17 00:00:00 2001 From: John Turner Date: Sun, 26 Mar 2023 00:17:24 -0400 Subject: [PATCH] created check-init.el script --- .gitignore | 1 + check-init.el | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100755 check-init.el diff --git a/.gitignore b/.gitignore index 3b6b442..0d192e1 100644 --- a/.gitignore +++ b/.gitignore @@ -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)))