Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README eln-cache management suggestions #112

Open
shipmints opened this issue Sep 29, 2024 · 0 comments
Open

README eln-cache management suggestions #112

shipmints opened this issue Sep 29, 2024 · 0 comments

Comments

@shipmints
Copy link

shipmints commented Sep 29, 2024

Thank you for maintaining these builds. I've switched from https://emacsformacosx.com/ which are not native and have a couple of issues which your builds address (not patch related).

For Emacs 29.1+ users, I think below is better for eln cache management vs. hacking native-comp-eln-load-path, and especially for people who share their .emacs.d tree across hardware platforms.

(when (native-comp-available-p)
  (require 'comp)
  (startup-redirect-eln-cache ; relative path name goes in user-emacs-directory
   (concat (file-name-as-directory "eln-cache")
           (car (split-string system-configuration "-")))) ; adds "x86_64" "aarch64"
  (native-compile-prune-cache)) ; keeps the cache clean after Emacs upgrades

I use no-littering and add user-emacs-directory/var, in sympathy, to avoid "polluting" .emacs.d:

  (startup-redirect-eln-cache
   (concat
    (file-name-as-directory "var")
    (file-name-as-directory "eln-cache")
    (car (split-string system-configuration "-"))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant