[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: way to discriminate between Emacs.app or terminal launch of Emacs in
From: |
Drew Adams |
Subject: |
RE: way to discriminate between Emacs.app or terminal launch of Emacs in init.el |
Date: |
Mon, 17 Aug 2015 17:18:51 -0700 (PDT) |
> > I am quite happy using Emacs in a terminal, and am often
> > inconvenienced using Emacs.app for all my emacs needs, despite
> > netsperts who proclaim that I am gimping myself.
>
> You can use window-system
> It'll be nil in the terminal, and ns for Emacs.app.
> Other values are possible.
I think this is what's recommended, but I can't tell you why
`display-graphic-p' is supposed to be better here. ;-)
(if (fboundp 'display-graphic-p)
(display-graphic-p)
window-system)