summaryrefslogtreecommitdiff
path: root/tw/home/files/emacs-init.el
diff options
context:
space:
mode:
authorTimo Wilken2023-01-19 23:52:16 +0100
committerTimo Wilken2023-01-19 23:52:16 +0100
commit00535da1f4bb655fa35c346a55e8645be710a3c8 (patch)
tree1f503e8223f68ef78bc50fdebdb14ece4926eade /tw/home/files/emacs-init.el
parent96e96d5e50541c63c71437f0e9b9213820c75635 (diff)
Try to set Emacs native-comp cache directory earlier
Diffstat (limited to 'tw/home/files/emacs-init.el')
-rw-r--r--tw/home/files/emacs-init.el5
1 files changed, 4 insertions, 1 deletions
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.")