Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [emacsclient]

emacsclient is a program which allows the user to connect to the Emacs Server. This is useful when using Emacs as the default editor on Unix-like systems, as it allows Emacs to be invoked without creating a new process, allowing the reuse of shared buffers and command history.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Error when using emacs in background process: [1] + suspended (tty output) emacs

I get this error when I try to open any file in the background using emacs: [1] + suspended (tty output) emacs file
Ben's user avatar
  • 1
0 votes
0 answers
17 views

In what way can emacsclient freeze the main server?

Often I find my Emacs frozen and I end up resolving it by exiting emacsclient. Can emacsclient somehow block the main Emacs from input?
Jason Hunter's user avatar
1 vote
0 answers
53 views

how to get emacsclient to behave like emacs?

I don't like that emacsclient keeps buffers open. Is there a way so when I C-x C-c out of a session, it behaves like a regular emacs instance and kills all associated buffers? It'd also be nice if ...
user129393192's user avatar
0 votes
0 answers
9 views

emacsclient vs. Chromebook: must manually switch to window

On Linux normally I can do $ emacsclient --no-wait file.txt and voila, there I am sitting in emacs editing file.txt before you know it. But not on ChromeOS Linux. There I need to manually switch to ...
Dan Jacobson's user avatar
0 votes
0 answers
20 views

How to use emacsclient to ask for a password

When I run vs-push (C-x v P) the program ssh-askpass gets execute to ask for the password of the SSH key. There are several different implementations. I am wondering if I can use emacsclient to ...
ceving's user avatar
  • 1,378
0 votes
1 answer
35 views

Is it possible to use Microsoft dev tunnels to connect to an emacs server running on Azure?

I'm in an environment where Tramp/ssh is not possible as a means of remote editing. However, developers using VSCode are able to connect their local versions of vscode to the remote vscode server ...
Charles Lowell's user avatar
0 votes
0 answers
28 views

start emacsclient with specific window geometry

I am trying to convert my existing emacs setup to a client/daemon configuration. A lot works as intended, but I do not manage to set the frame geometry to a fixed size. I do have the following in my ....
user52366's user avatar
  • 141
1 vote
1 answer
38 views

Emacsclient.exe -- How Load elisp from Command Line Argument --"-l" Option Not Recognized

Windows 7 emacs 28.2 Is there a way to load an elisp program from the command line when running the emacsclient? emacsclient.exe doesn't recognize the "-l" command line option. This works: \...
punchcard's user avatar
0 votes
1 answer
26 views

client always pops up a msgbox before connecting

My Emacs server uses a non-localhost IP address to listen for potential TCP connections. Each time I run emacsclientw.exe, the message box will pop up. Is there any way to avoid it?
shynur's user avatar
  • 5,318
1 vote
2 answers
113 views

Why is emacsclient not reusing the existing frame?

I have emacs running as a daemon (using launchctl), and I can use emacsclient --socket-name=socket -n -r -a '' and open a frame just fine. But if I run it again (say, to open some file), it opens ...
Lee Crabtree's user avatar
0 votes
1 answer
33 views

Custom `command-line-1` for `emacsclient`

I've put a custom definition of command-line-1 in my early-init.el which works for for calling emacs but not for calling an emacsclient. How can I make it work in the latter case?
J-Kappes's user avatar
0 votes
1 answer
232 views

Emacsclient cannot connect to running emacs daemon

I have a problem connecting to my emacs daemon. Here is the situation : I am on nixos I have an emacs-29.1 daemon running with "emacs-29.1 --daemon" as a user service. Here is the output of ...
Virgil's user avatar
  • 3
0 votes
1 answer
19 views

Emacs Keeps Data Even After I Close It + Doesn't Reload `.emacs`

Even after I close emacs with C-x C-c, it seems that it keeps some state saved: When I open it again, I can, for example, still see the old content of the *Messages* buffer. Also, it doesn't seem to ...
mimo31's user avatar
  • 111
0 votes
1 answer
95 views

How to open file from windows explorer in a new frame with emacsclient

How do I achieve that files opened from Explorer with emacs are always opened in a new frame? I tried making a link that has the target <path/to/emacs/bin>/emacsclientw.exe --create-frame. When ...
evilsetg's user avatar
2 votes
1 answer
294 views

custom-set-faces not working for client

I have a custom (custom-set-faces ...) section in my ~/.emacs file. When I run emacs this section seems to get completely ignored since the custom colours don't get set. But if I go to ~/.emacs, ...
Jan Stolarek's user avatar
0 votes
0 answers
10 views

Is it possible to do soap/wsdl requests as in SoapUI?

Emacs 27.1 To work with wsdl file I use SoapUI 5.7. Steps: Load wsdl file to SoapUI. As result it's show me all methods: set credentials Create and run any of method And it's work just fine. So ...
a_subscriber's user avatar
  • 4,124
0 votes
1 answer
88 views

Do you know good SOAP (wsdl) client for Emacs?

Do you know good SOAP (wsdl) client for Emacs? I try C-x C-e but get error: (soap-load-wsdl-from-url "http://www.dneonline.com/calculator.asmx?WSDL") progn: Symbol’s function definition is ...
a_subscriber's user avatar
  • 4,124
1 vote
0 answers
136 views

Some Icons Don't Show Up When Running in Server/Client Mode

I am writing my own config from scratch in emacs. It's not a very complicated config so far. I have installed all-the-icons font. It works just fine when I launch emacs directly and start working in ...
Vipul Rajan's user avatar
0 votes
1 answer
44 views

emacsclient: error accessing server file "~/.emacs.d/server/server"

wsl Ubuntu cannot connect when using emacsclient to connect to emacs server. My emacs init.el file settings are (setq server-socket-dir "~/.emacs.d/server") and I see the following when ...
uesugierii's user avatar
0 votes
0 answers
63 views

emacsclient and EAF, at the same time

EAF (Emacs Application Framework) is not compatible with emacsclient, it says on the web page. , but I don't understand why;) I can't find a reasonable explanation why these two can't be enabled at ...
Jason Hunter's user avatar
0 votes
1 answer
72 views

Backspace triggers C-h in emacsclient

When I run a client in a terminal with emacsclient -nw, for some reason Backspace triggers C-h. This doesn't happen with emacs -nw or with the client running in a window. In both cases, as expected, ...
vonaka's user avatar
  • 171
1 vote
1 answer
430 views

how to run emacsclient on windows in the terminal

i cannot use emacsclient on windows 10. Starting it with the gui client works well but trying to start it in command line mode from a terminal, for example running emacsclient -nw -c is there a ...
Kit Carson's user avatar
-1 votes
1 answer
40 views

Emacs application doesn't play well with emacs daemon

Using the zsh function emacs () { visible_frames () { emacsclient -a "" -e '(length (visible-frame-list))' } change_focus () { emacsclient -n -e "(select-frame-set-input-...
rogerl's user avatar
  • 205
0 votes
1 answer
173 views

How can I load properly full configuration with GUI elements and desktop parameters with `emacs --daemon` and `emacsclient -c`

Everything works fine when using regular Emacs. Now when I try to use the same init.el file with emacs --daemon and emacsclient -c I get an error. I have thought about using different configuration ...
Herman's user avatar
  • 57
1 vote
0 answers
18 views

How can I handle an emacs org-babel snippet triggering emacsclient

I want to call an external tool which will eventually invoke $EDITOR to do its thing. However from inside an org-babel code block this fails because while executing the code block the emacs I'm ...
stsquad's user avatar
  • 4,661
4 votes
1 answer
281 views

How to debug emacsclient?

Sometimes emacsclient fails with an error like: $ emacsclient .gitlab-ci.yml Waiting for Emacs... *ERROR*: Args out of range: 63695, 1, 1173 How can I debug this? emacsclient has no debug option, no ...
charmoniumQ's user avatar
0 votes
0 answers
195 views

Magit cannot commit. emacsclient on PATH. Pop! OS

magit-status sees the repo just fine, and I can even push to Github, or make a branch. I can also commit through the git cli no problem. However, before I can even write my commit message on magit I ...
vtrincado.h's user avatar
0 votes
0 answers
15 views

setting up a remote emacs pairing session without access to the filesystem [duplicate]

I'm just wondering if it's possible to setup an emacs pairing session over ssh where in one session, I have access to the filesystem but the other person I'm pairing with doesn't?
zcaudate's user avatar
  • 647
0 votes
1 answer
66 views

Preventing emacsclient eval from messing up my terminal

I use emacs as info viewer from the terminal, but if the info page does not exist (or there is any other error) the terminal (regardless of Kitty or Konsole) becomes hardly usable, not properly ...
xeruf's user avatar
  • 354
0 votes
0 answers
86 views

`C-x C-;` freezes emacs

This hasn't been happening every time, though once it starts it's consistent while emacs is running at least. It claims to be bound to comment-line as usual, but I can't actually run it through C-h k ...
Lēctia Landau's user avatar
1 vote
1 answer
117 views

emacsclient starts a new instance instead of contacting the server started by systemd

Log into Gnome emacs-server is started by systemd, using the default configuration of my distribution (Fedora 36): [Unit] Description=Emacs text editor Documentation=info:emacs man:emacs(1) https://...
dmvianna's user avatar
  • 392
0 votes
2 answers
401 views

How to always work from a daemon and always reuse an existing frame? (bonus: do it with chemacs2)

I'm new to emacs. I'm a spacemacs implant, really love ORG mode and evil mode. Been using for the past year or so. I've read some of the emacs documentation, which is fantastically written. But I'm ...
Lockszmith's user avatar
0 votes
1 answer
125 views

Emacs Daemon Multiple user on Mac best practices

I'm new to Emacs, so apologies if this is covered elsewhere. I'm running latest macOS 12.4; and downloaded emacs.app from emacsformacosx.com so I'm on Emacs 28.1-4 . I have an admin user, which I ...
NickR's user avatar
  • 101
0 votes
0 answers
111 views

Is there a way to create a emacs shotcut that runs a specific terminal command before opening emacs?

a friend of mine recomended that I use a program called obsidian to make notes,and I quite liked the idea, but i didn't like the program. I have been searching and it seeams to me that org-roam in ...
user38135's user avatar
0 votes
0 answers
55 views

Z-Order of Emacs Client Not Layered Top-Most

System & related settings: Fedora 35 (using Cinnamon Desktop) Emacs 27.2 focus mode: "sloppy" with "raise-on-click" disabled Contrary to all other applications, including the ...
Phoenix's user avatar
  • 351
1 vote
0 answers
145 views

Custom org-capture find headerline function error, wrong number of arguments

So, I managed to get my headline retrieval function fixed, so now the function searches and finds my header lines, but when I select the one I want to use.. it oddly throws back this apply: Wrong ...
Nova Leary's user avatar
2 votes
2 answers
734 views

How do I make org capture prompt for specific header target?

I need help writing a function that makes Org Capture prompt me of what it should place the capture to a specified header in my tasks org file (basically I need it to search through the specified org ...
Nova Leary's user avatar
1 vote
1 answer
155 views

Running a program from elisp that runs `emacsclient` set on `$EDITOR`

I'm automating some work tasks, and many of them consist of calling kubectl edit on different objects. kubectl edit basically opens your $EDITOR which I have configured to be emacsclient. My question ...
licorna's user avatar
  • 207
3 votes
0 answers
120 views

What are the differences between multiple ways to "close" an emacsclient?

As a standalone instance (without daemon mode) I close my emacs via C-x C-c (save-buffers-kill-terminal). This works also with emacsclient and I see no problem about that. But the manpage of ...
buhtz's user avatar
  • 729
1 vote
0 answers
41 views

How to trigger debugger on emacsclient error

I asked in a prior question about what might be causing my emacsclient widows to shutdown immediately with the following output on stderr: "ERROR: Beginning of buffer". I have tried to use ...
Daniel Doherty's user avatar
0 votes
0 answers
115 views

emacsclient closes immediately on "*ERROR*: Beginning of buffer"

I have an app where I call emacsclient to do some editing on an org file. When it calls it, the frame flashes for an instant, then closes immediately. On stderr, I get the following message: *ERROR*:...
Daniel Doherty's user avatar
1 vote
1 answer
104 views

Let emacsclient try to reconnect after running alternate_editor

If I set alternate_editor to an empty string, emacsclient runs "emacs --daemon" and then tries to reconnect. However, I want to run it a specific emacs executable that is not in my path. If ...
M0M0's user avatar
  • 143
1 vote
1 answer
297 views

How to open emacsclient with working directory set to $PWD?

In my XTerm, I want to open new Emacs frame as well as buffer, with working directory set to $PWD in XTerm env. I tried emacsclient -t -c --eval "(cd $PWD)", but it doesn't seem to work. Is ...
deepanshu's user avatar
  • 141
2 votes
0 answers
858 views

how to update emacs packages from the command line

I want to be able to update Emacs packages from the command line and then quit. I have written this function (defun updateandquit () (configuration-layer/update-packages t) (spacemacs/...
dewijones92's user avatar
0 votes
2 answers
1k views

What is emacs : daemon, emacsclient, tcp-server?

I want to know about why they are used? , what are they? what is daemon in emacs, Why Should/shouldnot i use "emacs" instead of "emacsclient --create-frame" ? what is client and ...
Rajanboy's user avatar
  • 123
1 vote
1 answer
259 views

org-link-open fails with Wrong number of arguments: (1 . 1), 0

I recently added a config entry to my ./doom.d/config.el to enable Firefox as a default browser for opening links. Below is the entry I added based on this post. ;; Set specific browser to open links ...
hypothesisusable's user avatar
0 votes
2 answers
347 views

Org Tangle if file does not exist

I've been trying to work out if it's possible to tangle a file if it's not existent on the system. I came across Can Org Babel conditionally tangle code blocks based on system-type? which gave me a ...
Kai Windle's user avatar
1 vote
0 answers
66 views

Open new file in new frame without raising existing frames (Windows)

I run Emacs in a MSWindows environment (via server launched with runemacs), and open new files with emacsclientw.exe -n [filename]. It works very well, except for a detail in the second case below: ...
pglpm's user avatar
  • 301
0 votes
1 answer
97 views

org-protocol URLs with UTF-8 (URL-encoded) characters aren't properly captured

When using org-protocol capture URLs on Windows, pages with non-ASCII titles or captured text results in a capture with incorrect values applied in the template. Despite such characters being properly ...
Chris Charabaruk's user avatar
1 vote
0 answers
162 views

emacs unable to create frame in tty mode on linux `No applicable method: frame-creation-function`

Recently I'm unable to open emacsclient in tty mode, it always fails with the below error (environment redacted, and added newlines) *ERROR*: No applicable method: frame-creation-function, ( (menu-bar-...
jackmac92's user avatar

1
2 3 4 5
7