Define, save, and load code-safe buttons in files for emacs