Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I know if I run emacs or aquamacs at the .emacs file?

Tags:

emacs

elisp

I want to make different environment between Cocoa emacs and Aquamacs. They both read ~/.emacs, so I tried something like this.

(unless (symbolp 'aquamacs-version)
; code for emacs
)

But it doesn't seem to work.

How can I know if I run emacs or aquamacs?

like image 547
prosseek Avatar asked Jul 15 '10 16:07

prosseek


1 Answers

I'd try (boundp 'aquamacs-version).

like image 82
offby1 Avatar answered Sep 22 '22 16:09

offby1