I have two Emacs (Aquamacs and text-based Emacs) on my Mac.
In my .emacs file, I can check if I'm using Aquamacs with ...
.emacs
(boundp 'aquamacs-version)
How can I check if I'm using text based emacs?
Jürgen H?tzel's answer works, but for text based emacs, using
(unless (null window-system) ...)
is better as (window-system) is not defined.
(window-system)
M-x emacs-version
ad some more characters here......
Sorry, from .emacs, just call
(emacs-version)
1.4m articles
1.4m replys
5 comments
57.0k users