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
1 answer

How do I pass an empty string to my alias for emacsclient in bash?

I want to pass an empty string to emacsclient so that it will auto-start the emacs server if it's not already running. On the command line if I type emacsclient -t -a '', this does exactly what I just described. In my bashrc file I have: alias…
Son of the Wai-Pan
  • 12,371
  • 16
  • 46
  • 55
1
vote
4 answers

How do I get my cocoa emacs on Mac OS X to load my .emacs visual customizations for new windows (any document opened after the first)?

So I just downloaded emacs 23.1 for my new snow leopard macbook pro from http://emacsformacosx.com/ and it works like a charm, except... I have visual customizations in my .emacs, a few lines are extracted here: (set-background-color…
Neil Sarkar
  • 6,834
  • 8
  • 32
  • 30
1
vote
4 answers

Start emacsclient without a new frame

If I am running emacs --daemon with a bunch of buffers already in it, is there a way to start emacsclient so it just opens whatever was the top buffer when I last worked in it? If I use emacsclient -t or emacsclient -c it creates a new frame and…
Mad Wombat
  • 14,490
  • 14
  • 73
  • 109
1
vote
2 answers

How can I send a C-g/quit signal to emacs from within emacsclient when the server is busy?

In my current setup, I run emacs --daemon on boot and thereafter use emacsclient to do work. However, I've noticed a problem with this. When a complex chunk of processing is happening, C-g stops working: the complex work can't be halted or…
Brighid McDonnell
  • 4,293
  • 4
  • 36
  • 61
0
votes
1 answer

How to keep emacsclient alive after file closed?

I start emacs with /usr/local/bin/emacs --fg-daemon via launchd, and open emacsclient frames in the terminal via /usr/local/bin/emacsclient -t -s $TMPDIR/emacs$(id -u)/server $filename. When I close (via C-x k or C-x #) the buffer/file that I passed…
Camden Narzt
  • 2,271
  • 1
  • 23
  • 42
0
votes
1 answer

Correct Way to Exit emacsclient When Set as the Git Editor

I'd like to use emacsclient as my editor in git, i.e. the core.editor setting in my .gitconfig. In my .gitconfig, I have: ... [core] editor = /usr/local/bin/emacsclient --tty ... When I do something like git commit --amend, or just git commit, I…
Afraz
  • 795
  • 1
  • 6
  • 20
0
votes
1 answer

emacsclient: unable to auto-detect email address (got '@.(none)

I cannot commit while using magit in emacsclient, and when I expand the error, I see: Author identity unknown *** Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to…
H.B.
  • 148
  • 8
0
votes
1 answer

Set up emacs server so that it dies when the last frame is closed

I have run into issues using the emacs server started when I log in and emacsclient. Specifically, I use the same emacs server for different R projects things get ugly and commands from different projects end up going to the same R session. My work…
mikemtnbikes
  • 393
  • 2
  • 11
0
votes
0 answers

My emacs client automagically terminates when switching applications [OSX iTerm2]

I try to be brave and switch from vi to emacs. Now, I set up Emacs 26 on macOS via homebrew and start Emacs as daemon in the background. I can use files using emacsclient -t. However, whenever I bring the Terminal into the background emacsclient…
0
votes
1 answer

Determine which of running servers, an emacsclient attached to?

I planed to starting emacs from the the start.sh as $ head start.sh #! /bin/bash { #starting emacs servers emacs --daemon=orging emacs --daemon=coding #waiting... #invoke emacsclients emacsclient -c -s "orging" & …
AbstProcDo
  • 19,953
  • 19
  • 81
  • 138
0
votes
1 answer

Attach an emacsclient to a specified running emacs server

Multiple named emacs servers might be invoked by the the commands { emacs --daemon="test1" emacs --daemon="test2" emacs --daemon='test3" } &> /dev/null As there are three emacs server running on background, How could attach an emacsclient…
AbstProcDo
  • 19,953
  • 19
  • 81
  • 138
0
votes
1 answer

Org-mode with Emacs: Where do I have to put my export in order to be able to use it in Emacs daemon?

I am struggling since this morning after the installation of CUDA 9 and cudnn 7. I am running emacs as a daemon, zsh as my default shell and I want to user org-mode to write notebook. Here is my .zshenv: ... export…
AlEmerich
  • 430
  • 4
  • 13
0
votes
0 answers

emacsclient, disable prettify-symbols-mode in terminal?

I am trying to disable prettify-symbols-mode when I use emacs in the terminal. The reason is that unicode support in the terminal is not as good as in the GUI mode. So it causes a problem with editing my R scripts. Here is what I came up with to…
biocyberman
  • 5,675
  • 8
  • 38
  • 50
0
votes
2 answers

How can I tell my bash prompt to indicate whether there's a backgrounded emacsclient session exists

I'm using, OS X, and mainly terminal and emacsclient. When I do shell stuff, I background my emacsclient with Control-Z Someties I forget whether i've done that, and end up spawning additional emacsclient sessions, which I don;t want to do. It would…
american-ninja-warrior
  • 7,397
  • 11
  • 46
  • 80
0
votes
0 answers

Is there a way to connect to remote emacs with local emacs configure?

On my laptop, I tried the emacs server-start to start a server daemon, and then i use emacsclient -c to connet the server. It is awesome. I have a PC used like a server for some guys using the same account -- root. So on the PC , there is no .emacs…
savior
  • 802
  • 6
  • 14