Is it possible to run Emacs.app with ~/.emacs.d/init.el and Emacs2.app with another init.el file that's placed somewhere else? If so, how?


Yes. Inside the Emacs.app folder is an executable that you can run directly, with some command line flags:

/Applications/Emacs.app/Contents/MacOS/Emacs --no-init-file --load /my/other/init2.el

(Your Emacs.app may be in a different folder)

  • thanks, it worked, but is it impossible to run the second one always with the second init.el file whenever I just double click the Emacs2.app on the Dock, by changing some files within the app's package contents? – stacko Apr 29 '17 at 10:35
  • 1
    I don't know how to do that but you might take a look at this answer – amitp Apr 29 '17 at 16:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.