diff options
author | Vincent Ambo <tazjin@google.com> | 2019-12-14T15·38+0000 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-12-14T15·38+0000 |
commit | 9df9fafd82a03ba0ae7b0db3edd67df44ef46a59 (patch) | |
tree | 0ffe71ba23355193a9d7905e0291648742bafe32 /tools/emacs | |
parent | fadf0619eb97b643d61d7713222a1ea23e019064 (diff) |
fix(emacs.d): Let emacs write to customize configuration r/146
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.
Diffstat (limited to 'tools/emacs')
-rw-r--r-- | tools/emacs/config/init.el | 13 |
1 files 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 "~")) |