Skip to content

Commit ea76c45

Browse files
committed
✨ Move the eln-cache out of my Emacs configuration directory
I'm finally trying out native compilation for Emacs, but by default it drops all the compiled stuff into ~/.emacs.d, which isn't great. Sure, I could gitignore it, but that's weird. So let's, as early as possible, swap my own local cache to a more sensible place.
1 parent 395dd3d commit ea76c45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

init.el

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
;; Ensure local storage is defined and set up.
2727
(require 'init-local)
2828

29+
;; I know where my local stuff is, so let's get the eln-cache to live there.
30+
(when (boundp 'native-comp-eln-load-path)
31+
(setcar native-comp-eln-load-path (local-emacs-directory "eln-cache")))
32+
2933
;; Ensure custom values go in their own file.
3034
(load (setq custom-file (local-emacs-directory "custom.el")) t)
3135

0 commit comments

Comments
 (0)