summaryrefslogtreecommitdiff
path: root/tw/home/files/emacs-early-init.el
blob: f4d4e765ea39b48b049be76f364dfec06ff17b9f (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
;;; 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