-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathearly-init.el
35 lines (27 loc) · 1.03 KB
/
early-init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
;;; early-init.el --- earliest birds -*- lexical-binding: t; -*-
;;; Commentary:
;;
;; elpa configuration
;;
;;; Code:
(setq load-prefer-newer t)
(let ((dotfiles-dir (file-name-directory (or load-file-name buffer-file-name))))
(add-to-list 'load-path (expand-file-name "lib/packed" dotfiles-dir))
(add-to-list 'load-path (expand-file-name "lib/compat" dotfiles-dir))
(add-to-list 'load-path (expand-file-name "lib/auto-compile" dotfiles-dir))
(add-to-list 'load-path (expand-file-name "lisp" dotfiles-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
(setq package-archives
'(("gnu" . "https://elpa.gnu.org/packages/")
("nongnu" . "https://elpa.nongnu.org/nongnu/"))))
(when (native-comp-available-p)
(setq inhibit-automatic-native-compilation t))
;; Local Variables:
;; no-byte-compile: t
;; indent-tabs-mode: nil
;; End:
;;; early-init.el ends here