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

前端 未结 6 2064
野性不改
野性不改 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 18:06

    To automatically byte compile everything that needs byte compiling each time I start emacs, I put the following after my changes to load-path at the top of my .emacs file:

    (byte-recompile-directory (expand-file-name "~/.emacs.d") 0)
    

    Surprisingly, it doesn't add much to my startup time (unless something needs to be compiled).

    To speed up my emacs, I first identified the slow parts using profile-dotemacs.el and then replaced them with autoloads.

提交回复
热议问题