Breaking out of .emacs script
Posted
by
prosseek
on Stack Overflow
See other posts from Stack Overflow
or by prosseek
Published on 2011-01-07T21:15:58Z
Indexed on
2011/01/08
19:54 UTC
Read the original article
Hit count: 158
emacs
I use two emacs (Aquamcs and text based emacs) on my Mac. I normally use text based emacs for just editing something, so I don't want to load anything with it.
What I came up with is to have the checking code in .emacs to exit/break if it's text based emacs (darwin system but not aquamacs).
(when (and (equal system-type 'darwin) (not (boundp 'aquamacs-version)))
(exit) ??? (break) ????
)
It seems to work, but I don't know how to break out of .emacs. How to do that?
ADDED
I just wanted to speed up in loading text based emacs on my mac, and I thought about breaking out as a solution. Based on the helpful answers, I came up with the following code that runs .emacs only when it's not a text based emacs.
(setq inhibit-splash-screen t)
(unless (null window-system)
© Stack Overflow or respective owner