summary refs log tree commit diff stats
path: root/emacs/.emacs.d/init.el
blob: 22c3f72cad33694618ab9e8b50e0cd2a2e2ad398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
;;; init --- user init file -*- no-byte-compile: t -*-
;;; Commentary:
;; Entry point for Emacs init.
;; Ensures that main init code is up-to-date by loading the newest version.
;;
;;; Code:
(setq load-prefer-newer t
      package-user-dir (concat "~/.emacs.d/packages/" emacs-version "/elpa"))

(setq package-archives nil)
(package-initialize)
(require 'auto-compile nil :noerror)

(when (featurep 'auto-compile)
  (auto-compile-on-load-mode))

(load-file (expand-file-name "main.el" user-emacs-directory))
;;; init ends here