From e26c0910c430cf580fd6dd303883464faa83c5af Mon Sep 17 00:00:00 2001 From: rearman Date: Mon, 11 May 2026 09:13:08 -0400 Subject: [PATCH] Switch to config.org instead of README Much simpler when the org file and intended el file have the same name. Makes it so you can use the built-in org-babel-load-file, which checks for write-time differences before tangling. I also don't need a README for my own configs, I know where everything is. --- README.org => config.org | 2 +- init.el | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) rename README.org => config.org (99%) diff --git a/README.org b/config.org similarity index 99% rename from README.org rename to config.org index efdd69e..3b1a4bc 100644 --- a/README.org +++ b/config.org @@ -1,6 +1,6 @@ #+TITLE: Emacs literate config #+STARTUP: noindent -#+PROPERTY: header-args emacs-lisp :tangle config.el +#+PROPERTY: header-args emacs-lisp :tangle yes * Header #+BEGIN_SRC emacs-lisp diff --git a/init.el b/init.el index 237b528..0b4d640 100644 --- a/init.el +++ b/init.el @@ -4,11 +4,6 @@ ;;; Code: -(let ((org-file "~/.emacs.d/README.org") - (el-file "~/.emacs.d/config.el")) - (when (file-newer-than-file-p org-file el-file) - (require 'ob-tangle) - (org-babel-tangle-file org-file el-file)) - (load-file el-file)) +(org-babel-load-file "~/.emacs.d/config.org") ;;; init.el ends here -- 2.39.5