I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.0 KiB

  1. ;; Cleanup
  2. ;; Emacs creates a lot of files relative to `user-emacs-directory'.
  3. ;; These files are not part of this immutable configuration and do not belong in the emacs directory.
  4. (defconst dotfiles/home
  5. (or (getenv "DOTFILES_HOME")
  6. (expand-file-name user-emacs-directory)))
  7. (defconst dotfiles/cache
  8. (or (getenv "DOTFILES_CACHE")
  9. (expand-file-name "~/.cache/emacs")))
  10. ;; How can we solve this issue?
  11. (unless (file-exists-p dotfiles/cache)
  12. (make-directory dotfiles/cache t))
  13. ;; Shortly after initialization, before most packages load, we change the value to `dotfiles/cache'.
  14. ;; I elaborate more on the technique in my post https://chrishayward.xyz/immutable-emacs/.
  15. (setq user-emacs-directory dotfiles/cache)
  16. ;; Disable error messages for packages that do not yet support native compilation.
  17. (setq comp-async-report-warnings-errors nil)
  18. ;; Because this project uses version-control, we can disable more unwanted features:
  19. ;; + Lock files
  20. ;; + Backup files
  21. (setq make-backup-files nil
  22. create-lockfiles nil)