What byte compile setup can I use when writing my init files?
Have been doing M-x byte-compile-file
directly. Would like to do a function that calls byte-compile-file
on the current buffer.
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityFor an initial compilation I would either M-x byte-compile-file
M-n RET, or else use B in dired
.1
For automatically maintaining the .elc
file thereafter, I highly recommend using the auto-compile
package:
https://github.com/emacscollective/auto-compile
1 More usually C-xC-jB -- refer to C-hig (dired-x)Optional Installation Dired Jump