;; Copyright (C) 2014 Ian Kelling ;; This program is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation, either version 3 of the License, or ;; (at your option) any later version. ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with this program. If not, see . ;; batch mode doesn't do package-initialize, so we need to call it to ;; setup the load-path for dash (setq force (getenv "FORCE_RECOMPILE")) (package-initialize) (require 'dash) ;; i was using git versions of gnus & bbdb and they ;; needed to run make instead of just byte compile the dir. ;; I'm not anymore, but leaving this in case I do or there ;; are similar packages. (cd "~/.emacs.d/src") (--map (when (and (not (string= it "gnus")) (not (string= it "bbdb")) (not (string= it ".")) (not (string= it "..")) (file-directory-p it)) (byte-recompile-directory (expand-file-name it) 0 force)) (directory-files ".")) (byte-recompile-directory (expand-file-name "~/.emacs.d/elpa") 0 force) (byte-recompile-file (expand-file-name "~/.emacs.d/my-init.el") force)