From 8a8ee8e243c3ffc8530e4794c575744451998d2d Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 11 Dec 2020 18:32:19 -0600 Subject: Unignore {,early-}init.el --- init.el | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 5af6473..5230d23 100644 --- a/init.el +++ b/init.el @@ -1,11 +1,7 @@ - ;; This file replaces itself with the actual configuration when first run. To keep only this version in git, run this command: - ;; git update-index --assume-unchanged init.el - ;; - ;; If it needs to be changed, start tracking it again thusly: - ;; git update-index --no-assume-unchanged init.el +;; init.el -*- lexical-binding: t -*- - (require 'org) - (find-file (concat user-emacs-directory "config.org")) - (org-babel-tangle) - (load-file (concat user-emacs-directory "early-init.el")) - (load-file (concat user-emacs-directory "init.el")) +(let ((conf (expand-file-name "config" + user-emacs-directory))) + (unless (load conf 'no-error) + (require 'org) + (org-babel-load-file (concat conf ".org")))) -- cgit 1.4.1-21-gabe81