From 231f84364c6ed20199a552088da3f050c9e5cd9a Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 14 Jan 2026 10:05:14 -0800 Subject: [PATCH] Fix org-config-custom.el loading: convert customize format to setq Co-Authored-By: Claude Opus 4.5 --- nixos/flake.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nixos/flake.nix b/nixos/flake.nix index 7b6651d2..d464aba1 100644 --- a/nixos/flake.nix +++ b/nixos/flake.nix @@ -377,8 +377,17 @@ (let ((config-dir (file-name-directory load-file-name))) (when (file-exists-p (expand-file-name "org-config-preface.el" config-dir)) (load (expand-file-name "org-config-preface.el" config-dir))) + ;; org-config-custom.el uses customize format (var value), convert to setq (when (file-exists-p (expand-file-name "org-config-custom.el" config-dir)) - (load (expand-file-name "org-config-custom.el" config-dir))) + (with-temp-buffer + (insert-file-contents (expand-file-name "org-config-custom.el" config-dir)) + (goto-char (point-min)) + (condition-case nil + (while t + (let ((form (read (current-buffer)))) + (when (and (listp form) (symbolp (car form))) + (set (car form) (eval (cadr form)))))) + (end-of-file nil)))) (when (file-exists-p (expand-file-name "org-config-config.el" config-dir)) (load (expand-file-name "org-config-config.el" config-dir))))