Remacs: Check if I am running remacs in elisp

Created on 7 Feb 2017  路  3Comments  路  Source: remacs/remacs

How can I determine if my config is running in remacs in elisp? I'd like to use the fix from #92, but I'd prefer to do that only when actually running remacs.

Most helpful comment

M-x apropos-value RET remacs :)

All 3 comments

Can you inspect invocation-name? I suppose command-line-args would work too, but I'd be tempted to write:

```emacs-lisp
(when (string= invocation-name "remacs")
...)

Ah that works wonderfully. I looked for something like that for about 20 minutes or so, but gave up. :/

Anyway, that looks like the perfect solution.

M-x apropos-value RET remacs :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kuangdash picture kuangdash  路  6Comments

jeandudey picture jeandudey  路  8Comments

Fuco1 picture Fuco1  路  3Comments

DavidDeSimone picture DavidDeSimone  路  6Comments

socketwiz picture socketwiz  路  5Comments