From a4a5311e59198894216736d60c7c6d42ed4a9907 Mon Sep 17 00:00:00 2001 From: Marc Date: Wed, 21 Apr 2021 10:08:10 +0200 Subject: [PATCH] more restructuring --- .gitignore | 1 - init.el | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 init.el diff --git a/.gitignore b/.gitignore index 92eb74f..9634a64 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ /init.elc /user-local/ -/init.el /elpa/ /places /transient/ diff --git a/init.el b/init.el new file mode 100644 index 0000000..dedc241 --- /dev/null +++ b/init.el @@ -0,0 +1,8 @@ +(defconst config-org (expand-file-name "config.org" user-emacs-directory)) +(defconst config-el (expand-file-name "config.el" user-emacs-directory)) + +(unless (file-exists-p config-el) + (require 'org) + (org-babel-tangle-file config-org config-el)) + +(load-file config-el)