summary refs log tree commit diff stats
path: root/emacs/.emacs.d/init.el
blob: 643da1b802a0e9c0460348f0ccce4ce0aa2fdf80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;;; 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)

(defun reload-user-init-file ()
  "Reload init file."
  (interactive)
  (load-file user-init-file))

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

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