From 47043a663135f8a7dd3dd4b406dc30ef993b0960 Mon Sep 17 00:00:00 2001 From: rearman Date: Wed, 15 Mar 2023 12:11:06 -0400 Subject: [PATCH] Match LarsTvei's Meta-config --- init.el | 7 +++++-- init.org | 9 ++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/init.el b/init.el index 0ad7691..0321d27 100644 --- a/init.el +++ b/init.el @@ -1,7 +1,10 @@ +;;; This file replaces itself with the real config at first run ;; We Can't tangle without org! (require 'org) -;; Create the real config... -(org-babel-tangle (concat user-emacs-directory "init.org")) +;; Open the config... +(find-file (concat user-emacs-directory "init.el")) +;; Tangle it... +(org-babel-tangle) ;; Load it... (load-file (concat user-emacs-directory "init.el")) ;; And compile it diff --git a/init.org b/init.org index ce1ae19..ed34b2b 100644 --- a/init.org +++ b/init.org @@ -18,14 +18,17 @@ I have taken this mostly whole-hog from [[https://github.com/larstvei/dot-emacs] This is the repo's =init.el= file, which bootstraps the real =init.el=. #+BEGIN_SRC emacs-lisp :tangle no +;;; This file replaces itself with the real config at first run ;; We Can't tangle without org! (require 'org) -;; Create the real config... -(org-babel-tangle (concat user-emacs-directory "init.org")) +;; Open the config... +(find-file (concat user-emacs-directory "init.el")) +;; Tangle it... +(org-babel-tangle) ;; Load it... (load-file (concat user-emacs-directory "init.el")) ;; And compile it -(byte-compile (concat user-emacs-directory "init.el")) +(byte-compile-file (concat user-emacs-directory "init.el")) #+END_SRC There is no reason to track the =init.el= that is generated. Run the following command to make git ignore the generated file, but keep the dummy init. -- 2.39.5