summary refs log tree commit diff stats
path: root/user/emacs/.emacs.d/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'user/emacs/.emacs.d/init.el')
-rw-r--r--user/emacs/.emacs.d/init.el26
1 files changed, 26 insertions, 0 deletions
diff --git a/user/emacs/.emacs.d/init.el b/user/emacs/.emacs.d/init.el
new file mode 100644
index 00000000..48fc30a3
--- /dev/null
+++ b/user/emacs/.emacs.d/init.el
@@ -0,0 +1,26 @@
+;;; 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 inhibit-startup-echo-area-message "alan")
+(setq load-prefer-newer t
+      package-user-dir (concat "~/.emacs.d/packages/" emacs-version "/elpa")
+      package-enable-at-startup nil
+      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))
+
+(let ((gc-cons-threshold most-positive-fixnum))
+  (load (expand-file-name "main.el" user-emacs-directory) :nomessage t))
+;;; init ends here