Emacs: set eln cache directory properly 1. It needs to be set in early-init.el 2. It should not be the last value of `native-comp-eln-load-path`, as that is expected to be a system directory
1 file changed, 5 insertions(+), 0 deletions(-)
changed files
M user/emacs/early-init.el → user/emacs/early-init.el
@@ -4,6 +4,11 @@ initial-major-mode 'fundamental-mode frame-inhibit-implied-resize t byte-compile-warnings '(not free-vars unresolved noruntime lexical make-local cl-functions)) +(require 'xdg) +(startup-redirect-eln-cache + (expand-file-name "emacs/native-compile" + (xdg-cache-home))) + ;; Disable all the bars, unless on macOS, in which case, keep the menu bar. (unless (eq window-system 'ns) (menu-bar-mode -1))