byte-recompile all elisp files
[emacs.git] / .emacs.d / config / emacs.org
index b56812a..31a9191 100644 (file)
@@ -97,6 +97,9 @@ We need to define the load-path. As I have lots of things I add
 locally, its getting a few entries. I disliked the repeated
 /add-to-list/ lines, so I now just take all subdirectories of
 jj-elisp-dir and add them.
+
+Additionally I also ensure that files in there are recompiled, when
+neccessary.
 #+BEGIN_SRC emacs-lisp :tangle yes
 (dolist
     (project (directory-files jj-elisp-dir t "\\w+"))
@@ -104,7 +107,8 @@ jj-elisp-dir and add them.
     (if (string= project "emacs23")
         (when (version< emacs-version "24")
           (add-to-list 'load-path project))
-      (add-to-list 'load-path project))))
+      (add-to-list 'load-path project))
+    (byte-recompile-directory project 0)))
 #+END_SRC
 
 *** Info path