all repos — nixfiles @ 41d5123ac903f11518ee8dfbda79a69750ba1698

System and user configuration, managed by nix and home-manager

Emacs: enable init.el to be batch byte-compiled
Alan Pearce alan@alanpearce.co.uk
Sat, 18 May 2013 17:26:47 +0100
commit

41d5123ac903f11518ee8dfbda79a69750ba1698

parent

95830ed17e5e64e4eb4fcdd755eb05677eb580b8

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M emacs/init.elemacs/init.el
@@ -48,7 +48,8 @@ ("marmalade" . "http://marmalade-repo.org/packages/")                          ("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 @@ '(bind-key         diminish
         use-package))
 
-(require 'use-package)
+(eval-and-compile
+  (require 'use-package))
 
 ;;;; Style