mirror of
https://github.com/emacscollective/emacs.g.git
synced 2025-06-07 08:14:16 -04:00
That way "init.el" can also benefit from `auto-compile-on-load-mode' and `load-prefer-newer'. "early-init.el" still cannot of course, but we already don't compile that file (for this very reason).
27 lines
785 B
EmacsLisp
27 lines
785 B
EmacsLisp
;;; early-init.el --- earliest birds -*- lexical-binding: t -*-
|
|
|
|
(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
|