0

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.

Dilna
  • 1
  • 3
  • 11

1 Answers1

1

For 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

phils
  • 50,977
  • 3
  • 79
  • 122