Everytime I save a file in emacs lisp mode, I want it to be automatically byte-compiled. Can someone come up with a function that does byte-compile-file on the current file if the current major mode is emacs lisp mode? I want to add-hook that function to after-save-hook.
Everytime I save a file in emacs lisp mode, I want it to be
Share
I found an answer here. The following does it all. It is a copy from the linked site.