emacs: add some optional build options.