set mode-require-final-newline to nil for compatible with ethan.