;;; early-init.el --- Emacs early-start initialisation ;;; Commentary: ;;; Put native-compiled binaries in the cache. Do this in early-init so that ;;; Emacs doesn't start compiling stuff and putting it in the wrong directory ;;; before loading init.el. ;;; Code: ;; Don't require 'comp (which defines `native-compile-target-directory'), so ;; that we don't load-and-compile subr.el before the variable is set properly. (setq native-compile-target-directory ; not a `customize' option (expand-file-name "emacs/eln" (or (getenv "XDG_CACHE_HOME") "~/.cache/"))) ;;; early-init.el ends here