summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-05-18 17:26:47 +0100
committerAlan Pearce2013-05-18 17:30:03 +0100
commit41d5123ac903f11518ee8dfbda79a69750ba1698 (patch)
treeb60787579b34f6ea548bafb18bb1ea72c9ea6ac1 /emacs
parent95830ed17e5e64e4eb4fcdd755eb05677eb580b8 (diff)
downloadnixfiles-41d5123ac903f11518ee8dfbda79a69750ba1698.tar.lz
nixfiles-41d5123ac903f11518ee8dfbda79a69750ba1698.tar.zst
nixfiles-41d5123ac903f11518ee8dfbda79a69750ba1698.zip
Emacs: enable init.el to be batch byte-compiled
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 3ab0700f..08a793f7 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -48,7 +48,8 @@ Values: `desktop', `server', `laptop'")
                          ("melpa"     . "http://melpa.milkbox.net/packages/")
                          ("org"       . "http://orgmode.org/elpa/")))
 
-(package-initialize)
+(eval-and-compile
+  (package-initialize))
 
 (add-to-list 'load-path *elisp-dir*)
 
@@ -59,7 +60,8 @@ Values: `desktop', `server', `laptop'")
         diminish
         use-package))
 
-(require 'use-package)
+(eval-and-compile
+  (require 'use-package))
 
 ;;;; Style