Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to debug why my .emacs does not load. Error message.

Invalid read syntax: # ... Start Emacs with
the `--debug-init' option to view a complete error backtrace.

My question is: How do I do that? What I've tried so far is this.

open -a --debug-init

Unable to find application named '--debug-init'

open -a --debug-init

open: unrecognized option `--debug-init'

I have my emacs configuration file in my home directory.

share|improve this question
up vote 12 down vote accepted

I'm not on a Mac right now so I can't check, but this should work:

open -a /Applications/ --args --debug-init

Note: requires Snow Leopard and later.

EDIT: You can also try this:

/Applications/ --debug-init

If that doesn't work, try capitalizing the "E" in "emacs". (I'm not sure how is structured internally, but the core executable should probably be one of the two.)

share|improve this answer
Many thanks, it is working! Accepting when I've solved the error. – r4. Aug 7 '12 at 14:43
Which one of the two worked? (Still not at my Mac ATM) – oboewan42 Aug 7 '12 at 19:32
Both two gives exactly the same result. Success! – r4. Aug 7 '12 at 19:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .