emacscollective / no-littering

Help keeping ~/.config/emacs clean
GNU General Public License v3.0
635 stars 69 forks source link

gccemacs makes eln-cache directory in user-emacs-directory #148

Closed Kazimazi closed 3 years ago

tarsius commented 3 years ago

Yes, and that has to be dealt with before no-littering is loaded. That's how I do it (and then some):

;;; early-init.el --- earliest birds               -*- lexical-binding: t -*-

(when (boundp 'comp-eln-load-path)
  (setcar comp-eln-load-path
          (expand-file-name (convert-standard-filename "var/eln-cache/")
                            user-emacs-directory)))

(setq load-prefer-newer t)

(let ((dir (file-name-directory (or load-file-name buffer-file-name))))
  (add-to-list 'load-path (expand-file-name "lib/packed" dir))
  (add-to-list 'load-path (expand-file-name "lib/auto-compile" dir)))
(require 'auto-compile)
(auto-compile-on-load-mode)
(auto-compile-on-save-mode)

(setq package-enable-at-startup nil)

(with-eval-after-load 'package
  (add-to-list 'package-archives
               (cons "melpa" "https://melpa.org/packages/")
               t)
  (add-to-list 'package-archives
               (cons "org" "https://orgmode.org/elpa/")
               t))

;; Local Variables:
;; no-byte-compile: t
;; indent-tabs-mode: nil
;; End:
;;; early-init.el ends here
tarsius commented 3 years ago

I've added a note to the wiki.

tarsius commented 2 years ago

Not sure if that ever actually worked but it certainly didn't for a while now. Since earlier today it works again. Update Emacs and see Native compilation cache.