tag:blogger.com,1999:blog-8032022811235182759.post5402696290128853602..comments2024-03-23T08:25:23.254-07:00Comments on Linux Commando: Run emacs in batch mode to byte-compile elisp filesPeter Leunghttp://www.blogger.com/profile/05589860210899238688noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8032022811235182759.post-58558429214833910312013-04-26T07:22:25.306-07:002013-04-26T07:22:25.306-07:00This works nicely for adhoc byte-compilations:
$ ...This works nicely for adhoc byte-compilations:<br /><br />$ echo "foo.el" | emacs -Q -f byte-compile-file --batchAnonymoushttps://www.blogger.com/profile/05005445125509389688noreply@blogger.comtag:blogger.com,1999:blog-8032022811235182759.post-58978619034226621072011-08-06T08:26:33.856-07:002011-08-06T08:26:33.856-07:00One can also run purely from the commandline, with...One can also run purely from the commandline, without a commandfile. E.g., to byte-compile *.el from the cwd, do<br /><br />find ./ -name '*.el' | xargs emacs -batch -f batch-byte-compile<br /><br />However you may have problems with compile order, in which case creating/editing the commandfile will be useful.Tom Rochehttps://www.blogger.com/profile/02860614024937471220noreply@blogger.comtag:blogger.com,1999:blog-8032022811235182759.post-39763137271859620172009-03-16T10:07:00.000-07:002009-03-16T10:07:00.000-07:00Thanks a lot, I created a el file with list of fil...Thanks a lot, I created a el file with list of files using below command and compiled using your code :) <BR/><BR/>find .emacs.d/site-lisp/ -name "*.el" | awk '{print "(byte-compile-file \"" $1 "\")";}' > runme.elAravindahttps://www.blogger.com/profile/08121228466528898790noreply@blogger.com