How do I byte-compile everything in my .emacs.d directory?

前端 未结 6 2115
野性不改
野性不改 2021-01-29 17:40

I have decided to check out Emacs, and I liked it very much. Now, I\'m using the Emacs Starter Kit, which sort of provides better defaults and some nice customizations to defaul

6条回答
  •  無奈伤痛
    2021-01-29 17:43

    You can use the --batch flag to recompile from the command line.

    To recompile all, do

    emacs --batch --eval '(byte-recompile-directory "~/.emacs.d")'
    

    or to recompile a single file as from a Makefile,

    emacs --batch --eval '(byte-compile-file "your-elisp-file.el")'
    

提交回复
热议问题