Hi Kirill, > Does anybody know how to run saving automatically before compilation? You can bind save + compile to F9 like this: (global-set-key [f9] (lambda () (interactive) (progn (save-buffer) (erlang-compile)))) Regards, Dominic Williams http://dominicwilliams.net ----