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.
339 questions
0 votes
0 answers
4 views
access server-buffer-clients from mode hook, or access current server process from lisp code
How can I access, from a mode's hook, the client process(es) that is/are visiting the buffer the mode is being set on? Outside of the context of a hook, I can just access the buffer-local variable ...
0 votes
1 answer
51 views
Emacsclient freezes with a particular combination of server-stop-automatically and use-dialog-box
I encountered a situation where Emacs was unexpectedly unresponsive and could reduce it to the following minimal reproducible example. This is on Emacs 30.2 on Linux in KDE and happens with X11 as ...
0 votes
2 answers
109 views
Keep buffer but close emacsclient session
Using Emacs 29.1 on a Mac. I will sometimes start an emacsclient session with something like emacsclient *.json which loads all the JSON files in the current directory. I will then start looking at ...
0 votes
2 answers
395 views
problems with emacs and emacsclient with ubuntu as of late 2024
Since decades, I have my own .emacs file. Lately, things have changed and when starting emacs from the ubuntu sidebar, it is no longer read. To my surprise, I found out that the button does not start ...
0 votes
1 answer
178 views
`--init-directory` is only working with runemacs.exe but not with emacsclientw.exe on Windows
A symbolic link on windows for emacsclientw.exe with the following flags: C:\Users\XXX\bin\emacs-29.3\bin\emacsclientw.exe --init-directory "~/Dotfiles/emacs/.emacs.d/" -n -c -a "" ...
0 votes
1 answer
147 views
emacsclient cannot open web links with org-open-at-point or browse-url
emacsclient cannot open web links using neither org-open-at-point or browse-url. It does work, however, from a standalone Emacs session. I get no relevant messages in the Messages buffer, nor from ...
0 votes
1 answer
99 views
emacsclient says "No connection could be made.." [duplicate]
(I'm not sure if this is a windows-only problem, may other OSs just don't crash as often) I used to start one emacs window and my .emacs has a line (server-start) which starts the server. Then I open ...
0 votes
0 answers
45 views
Imitating `emacs /path/to/folder/` behavior with emacs client for project configuration file recognition
To save some time and flashing white screen at startup, I use the emacs daemon and launch a emacs client. However, I have the following project-based workflow that seems to require that I use the non-...