Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • I tried using these hooks and it is still adding the eln-cache file. Somehow "/.emacs.d/eln-cache/" always gets added as the first entry, which means that all the eln files end up going there. Commented Feb 8, 2022 at 16:01
  • And if I try setting it directly as with (setq native-comp-eln-load-path `(,(expand-file-name (convert-standard-filename ".local/temp/cache/eln-cache/")) "/Applications/Emacs.app/Contents/Frameworks/native-lisp/")) the value after startup is ("/Users/roambot/.emacs.d/eln-cache/" "/Applications/Emacs.app/Contents/Frameworks/native-lisp/"). So it is clearly getting reset in the process in a way that ignores both emacs-startup-hook and after-init-hook (both of which I've tried). Commented Feb 8, 2022 at 16:11
  • You can't stop it from adding to the path at start-up; as I've indicated, that behaviour is hard-coded. But you can act shortly after that and make any manipulations that you wish to. That said, I just tried your code in 28.0.90 and can't replicate your problem -- in emacs-startup-hook I see your modified path. Commented Feb 8, 2022 at 21:17
  • Actually I'd misread the sequencing. It doesn't explain your problem, but it meant my answer was misleading. I've updated it. Commented Feb 8, 2022 at 21:34