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
2 answers
50 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
26 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
85 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
17 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
51 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
202 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
6 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
  • 3,906
0 votes
1 answer
63 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
  • 3,906
1 vote
0 answers
87 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
37 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
102 views

Using Windows git.exe with Magit on WSL2 Hangs on commit

I currenlty run emacs-nox on WSL2. My workflow is as such: [Gentoo Linux Host] –ssh–> [WSL2 Ubuntu 22.04.2 LTS (Windows VM)] –open–> [emacs] –edit–> /mnt/c/<Path>/<Files> There is ...
Chris's user avatar
  • 143
0 votes
0 answers
48 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
37 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
0 votes
1 answer
197 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
38 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
107 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
  • 25
1 vote
0 answers
16 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,626
4 votes
1 answer
199 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
167 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
  • 637
0 votes
0 answers
39 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
  • 334
0 votes
0 answers
72 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 ...
Eden Landau's user avatar
1 vote
1 answer
93 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
  • 370
0 votes
2 answers
267 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
100 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
93 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
49 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
  • 341
1 vote
0 answers
130 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
492 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
142 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
88 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
  • 709
1 vote
0 answers
34 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
94 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
90 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
247 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
766 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
948 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
209 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
267 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
51 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
  • 289
0 votes
1 answer
88 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
141 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 vote
0 answers
3k views

Doom emacs org-agenda does not show to do items

I am new to doom emacs, I am trying to give a shot to using org mode todos and agenda files. I created a sample org file with a list of to-do items as below. #+TITLE: Sample list * Check ** TODO Item ...
hypothesisusable's user avatar
1 vote
0 answers
88 views

`org-ellipsis` respected by `emacsclient` but not by `emacs`

In my emacs.d/init.el I have: (use-package org ;; ... :custom (org-ellipsis " ▼") :custom-face (org-ellipsis ((t (:foreground "#665" :underline nil)))) ;; ....
Chen Levy's user avatar
  • 385
0 votes
1 answer
316 views

Emacs daemon. First emacslient frame loads reasonably fast. Subsequent emacsclient frames load almost instantaneously. Why?

Emacs daemon greatly reduces time to load the first frame with emacsclient. However, when visiting a file with emacsclient, subsequent emacsclient frames load much faster than the first. Command Load ...
Snelephant's user avatar
1 vote
1 answer
33 views

org files are not refreshed in emacsclient

My org files are stored on the cloud so I can edit them from multiple machines. Whenever I make a change to an org file (from a different machine), emacsclient does not reflect these changes, but a ...
marc.soda's user avatar
  • 123
1 vote
1 answer
270 views

mwheel-scroll bindings between GUI and terminal?

Using an Emacs daemon (28, pgtk branch) switching between GUI and terminal, I can't get mouse scrolling to work on both. They work on each individually, but the issue is with the mouse-wheel-{up,down}-...
radu242's user avatar
  • 11
1 vote
1 answer
175 views

Emacs client doesn't recognize non-ascii input

The problem: When I type a non-ascii character, the character is not wrote and instead a weird key combination is performed, depending on which character I have typed, as if it didn't support utf-8. ...
jthulhu's user avatar
  • 225
1 vote
1 answer
67 views

How to suppress emacsclient --eval output

I am opening a file as follows: $ emacsclient -qt -e '(progn (find-file "'filename.py'"))' #<buffer filename.py> which outputs #<buffer filename.py> in the terminal. Is it ...
alper's user avatar
  • 1,300
6 votes
1 answer
2k views

How to get the PATH from the SHELL

When launched at system start-up, the Emacs daemon doesn't pick up modifications to the PATH introduced by shell initialization scripts. Emacswiki suggests to use this function to update Emacs' PATH, (...
Arch Stanton's user avatar
  • 1,575

1
2 3 4 5
7