[Emacs] helper macros to write faster, portable and robust init script