From 9df9fafd82a03ba0ae7b0db3edd67df44ef46a59 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Dec 2019 15:38:03 +0000 Subject: fix(emacs.d): Let emacs write to customize configuration Configures Emacs' `customize` to write directly to my Emacs configuration. This comes with the caveat that the new config will only be loaded if my Emacs is rebuilt. --- tools/emacs/config/init.el | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tools/emacs/config/init.el b/tools/emacs/config/init.el index 2086117967a3..174c74443162 100644 --- a/tools/emacs/config/init.el +++ b/tools/emacs/config/init.el @@ -128,9 +128,16 @@ (use-package web-mode) (use-package yaml-mode) -;; Configure a few basics before moving on to package-specific initialisation. -(setq custom-file (concat user-emacs-directory "init/custom.el")) -(load custom-file) +;; Configuration changes in `customize` can not actually be persisted +;; to the customise file that Emacs is currently using (since it comes +;; from the Nix store). +;; +;; The way this will work for now is that Emacs will *write* +;; configuration to the file tracked in my repository, while not +;; actually *reading* it from there (unless Emacs is rebuilt). +(setq custom-file + (expand-file-name "~/projects/tazjin/tools/emacs/config/custom.el")) +(require 'custom) (defvar home-dir (expand-file-name "~")) -- cgit 1.4.1