Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if I am running remacs in elisp #137

Closed
PythonNut opened this issue Feb 7, 2017 · 3 comments
Closed

Check if I am running remacs in elisp #137

PythonNut opened this issue Feb 7, 2017 · 3 comments

Comments

@PythonNut
Copy link

PythonNut commented Feb 7, 2017

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.

@Wilfred
Copy link
Collaborator

Wilfred commented Feb 7, 2017

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

(when (string= invocation-name "remacs")
 ...)

@PythonNut
Copy link
Author

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.

@Wilfred
Copy link
Collaborator

Wilfred commented Feb 7, 2017

M-x apropos-value RET remacs :)

Wilfred added a commit that referenced this issue Feb 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants