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.
This commit is contained in:
Vincent Ambo 2019-12-14 15:38:03 +00:00
parent fadf0619eb
commit 9df9fafd82

View file

@ -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 "~"))