From 00535da1f4bb655fa35c346a55e8645be710a3c8 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Thu, 19 Jan 2023 23:52:16 +0100 Subject: Try to set Emacs native-comp cache directory earlier --- tw/home/files/emacs-init.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tw/home/files/emacs-init.el') diff --git a/tw/home/files/emacs-init.el b/tw/home/files/emacs-init.el index b7c9f86a..d4bc13aa 100644 --- a/tw/home/files/emacs-init.el +++ b/tw/home/files/emacs-init.el @@ -20,11 +20,14 @@ ('state (or (getenv "XDG_STATE_HOME") "~/.local/var/lib/")) (_ (error "Unknown XDG directory type: %S" type))))) +;; Put native-compiled binaries in the cache. This is NOT a `customize' option. +(require 'comp) ; for `native-compile-target-directory' +(setq native-compile-target-directory (tw/xdg-emacs-subdir 'cache "eln/")) + ;; Global/built-in Custom settings ;; Apply these as early as possible so that e.g. the native-comp files go to the right place. (mapc (apply-partially #'apply #'customize-set-variable) `((native-comp-async-report-warnings-errors silent "Don't pop up Warnings buffer for native compilation.") - (native-compile-target-directory ,(tw/xdg-emacs-subdir 'cache "eln") "Put native-compiled binaries in the cache.") ;; Emacs GUI customization. (inhibit-startup-screen t "Don't show the startup screen with help links.") (menu-bar-mode nil "Hide the menu bar globally.") -- cgit v1.2.3