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.

See also Emacs-Server (GNU Emacs Manual) and Emacs Client (emacswiki).

94 questions
1
vote
0 answers

Emacs daemon/server with slash in the name

When I try the following command it works as expected: emacsclient -t -s foo Tries to connect to an emacs daemon named `foo' and if no such daemon is found starts one and then connects to it. but this does not: emacsclient -t -s foo/bar It never…
LonelyTree
  • 11
  • 2
1
vote
1 answer

Mac OS X: How to permanently change the prompt (value of PS1) in the shell of emacs client?

I have start emacs as daemon through (emacs --daemon). I then launch the client (emacsclient -c) and use its shell mode through (M-x shell RET). However the prompt starts with: bash-3.2$ I have changed the value of PS1 by export PS1="\w\$ " in…
ROBOT AI
  • 1,217
  • 3
  • 16
  • 27
1
vote
5 answers

emacsclient not evaluating color-theme?

When I boot I launch emacs --daemon and it evaluates my .emacs with one exception: (add-to-list 'load-path "~/.elisp/zenburn-emacs") ;fix loading issue (require 'zenburn) ;;; color theme - zenburn? (add-to-list 'load-path…
user284244
1
vote
1 answer

Centos 7.6 emacsclient can't find socket

I followed the instructions https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-managing_services_with_systemd-unit_files create a emacs.service under /etc/systemd/system/like…
Coco
  • 71
  • 1
  • 1
  • 8
1
vote
1 answer

How to start emacsclient on emacs 27, ubuntu 18

What is the equivalent of emacsclient -a '' with emacs 27 on Ubuntu 18? I now get $ emacsclient -a '' emacsclient: file name or argument required Try 'emacsclient --help' for more information Without the fallback of starting an emacs daemon and…
Rorschach
  • 31,301
  • 5
  • 78
  • 129
1
vote
2 answers

emacsclient dialog on Windows

I'm using EmacsW32 from http://www.emacswiki.org/emacs/EmacsW32. EmacsClient works great - opening a file with it always uses an existing emacs. However, starting emacs for the first time opens a dialog with the text "Waiting for emacs server to…
thekidder
  • 3,486
  • 1
  • 33
  • 36
1
vote
2 answers

Can Rhapsody be configured to use an external source code editor?

I am using Rational Rhapsody for Linux and is wondering if it is possible to configure it to open source code with an external editor instead of the built in editor. I would prefer to be able to edit code using emacs via emacsclient. According to…
David Holm
  • 17,522
  • 8
  • 47
  • 47
1
vote
0 answers

Desktop.el under emacsclient

I am trying to use desktop functionality (http://www.emacswiki.org/emacs/DeskTop) in emacs. I added following code to my .emacs: (require 'desktop) (setq desktop-save t) (setq desktop-load-locked-desktop t) (setq *desktop-dir* (list…
MageSlayer
  • 421
  • 4
  • 12
1
vote
1 answer

emacsclient unable to find emacs server

I have this setup for emacs on my Mac. 1. Downloaded the distro from http://emacsformacosx.com/. 2. Followed the tips here http://emacsformacosx.com/tips to set up emacs and emacsclient appropriately. However the following sequence of steps does…
panache
  • 311
  • 3
  • 14
1
vote
1 answer

Emacs after-make-frame-functions argument is void

I have the following code in my .emacs file. It's supposed to move the input focus to any newly created frame. (defun foo-focus-new-frame (frame) (select-frame-set-input-focus (frame))) (add-hook 'after-make-frame-functions 'foo-focus-new-frame…
FixMaker
  • 3,759
  • 3
  • 26
  • 44
1
vote
1 answer

Emacsclient server name not recognized

I would like to have emacsclient connect to a given Emacs server from command line. Reading the manual Using Emacs as a Server I thought I could do something like: emacs --eval '(server-start)' --eval "(set-variable 'server-name \"foo\")"…
Håkon Hægland
  • 39,012
  • 21
  • 81
  • 174
1
vote
1 answer

start emacsclient within emacs (like magit does)

I am looking for ways to start emacs within shell-mode, and I want the client to connect to the enclosing emacs instance so I don't need to switch to the instance running the server to edit the file. I sense it is doable because magit is already…
chtlp
  • 645
  • 1
  • 6
  • 16
1
vote
2 answers

Why does Emacs Server say "Buffer still has clients" when its only open on one client?

I have an emacs daemon running with one client that opened a file. I understand the concept behind C-k showing "Buffer still has clients", but why does this happen when the buffer is only open on one client (I only have one client open)? Does emacs…
darksky
  • 20,411
  • 61
  • 165
  • 254
1
vote
0 answers

Can I make emacsclient start alternate-editor in the background?

I have installed Emacs 24 on my Mac using homebrew, and similar to another question (listed below), I would like to use the same command when first starting Emacs as I do when opening additional files from the command line. To this end, I have set…
amacleod
  • 1,450
  • 2
  • 15
  • 23
1
vote
2 answers

How can I close all opened frames in emacsclient?

I have a lot of frames always open in emacs. Like I use emacsclient (daemon) and almost never restart my computer, these frames are never close. I could close one with C-x k but how to close all opened frames?
ppr
  • 685
  • 7
  • 24