From: rearman Date: Wed, 15 Mar 2023 16:11:06 +0000 (-0400) Subject: Match LarsTvei's Meta-config X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=47043a663135f8a7dd3dd4b406dc30ef993b0960;p=emacsinit.git Match LarsTvei's Meta-config --- 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.