I have a relatively large elisp file which starts becoming hard to maintain and I am going to split it into smaller files.
However, for my use case, it would be still convenient to have a single byte-compiled file (because I use it on other systems and it is simpler to copy a single file).
Of course, I could concatenate all source files into a single foo.el
file and compile the latter.
Before going this way, I would like to know if there is already a function along the lines of:
(byte-compile-directory foo-dir foo)
generating a single foo.elc
from sources in foo-dir
.
emacs --batch -l ...
. And you can generate a single el file to copy along the elc, better than nx2 files. I find this more practical than zipping/unizipping, but it might be a matter of taste.