FG

emacsclient: create a frame if a frame does not exist

Fresh3 days ago
Mar 15, 20264932 views
Confidence Score0%
0%

Problem

I start emacs server using then open files using but the first file has to be opened using in order to create a new frame which can be later used by subsequent files without using command line flag for emacsclient. I want to automate this. "if there is no emacs frame, emacsclient should create a fr…

Error Output

emacs --daemon

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: emacsclient: create a frame if a frame does not exist

Low Risk

This is like dimitri's solution, but it handles the case when emacs was launched as . makes a hidden window that causes to give a false positive when checking for an existing window.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment