Skip to main content

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
4 votes
1 answer
463 views

emacsclient of 24.4 does not work on Yosemite

I have used emacsclient without any problem on OSX. Usually I just start Emacs server by emacs --daemon in Console, and then emacsclient works. I use emacsclient -nc to create a new frame. However, ...
Nolan's user avatar
  • 41
0 votes
1 answer
204 views

Helm command in `emacsclient -c` does nothing

I am trying to bind a keyboard key for a new emacsclient frame running a specific helm command helm-locate like that: emacsclient -c --eval '(helm-locate)' It does not seem to work (no new frame ...
entropiece's user avatar
3 votes
1 answer
1k views

Specify name on emacsclient first frame

I would like an emacsclient frame with a specific name to open when I log into my computer. I tried adding emacsclient -e '(select-frame (make-frame (quote ((name . "scratchemacsframe")))))' to my ...
William Everett's user avatar
19 votes
3 answers
1k views

How to collapse undo history?

I'm working on an Emacs mode that lets you control Emacs with speech recognition. One of the problems I've ran into is that the way Emacs handles undo doesn't match how you would expect it to work ...
Joseph Garvin's user avatar
13 votes
3 answers
6k views

Reload environment variables

This question has been asked at superuser is-there-a-way-to-reload-environment-variables-in-emacs, but no good solution was given. I am using EmacsClient with often more than 30 buffers open, if I ...
Håkon Hægland's user avatar
3 votes
2 answers
924 views

Is it possible to figure out which package/script takes most of the startup time?

I used to run Emacs on Linux using Emacsclient, it is really easy and great experience: emacs --daemon emacsclient When I work on a Windows machine, Emacs starts very slow. It seems there's no ...
Nick's user avatar
  • 4,513
2 votes
1 answer
373 views

Reloading files from disk in frame with emacsclient

This may be user error, but if I open a file with emacsclient -c file.tex then if I try to reload the file using C-x C-v, then I get the usual Find alternate file: but if I press enter on that, I ...
Faheem Mitha's user avatar
4 votes
3 answers
2k views

Open buffer in a specified frame

Do frames in emacs have a handle the way buffers do? In particular, can I specify that a particular file should be opened in a specified frame? I would like to have two frames where I use one for ...
Pradhan's user avatar
  • 2,370
5 votes
1 answer
2k views

Debugging - emacsclient: error accessing server file "server"

I got the not terribly helpful error message recently trying to connect emacsclient to a emacs daemon using tcp sockets. emacsclient: error accessing server file "server" Looking at the source, its ...
Job Evers's user avatar
  • 300
2 votes
1 answer
90 views

Set mark when jumping from emacsclient

I use AucTeX to edit LaTeX files and a PDF viewer that supports inverse search using SyncTeX. When I click on a location in the PDF, it simply calls emacsclient with the corresponding file and line. ...
ChrisR's user avatar
  • 404
5 votes
1 answer
165 views

How to have C-g *not* cancel emacsclient eval commands?

I'm sending some commands to my emacs using emacsclient --eval on a timer. The only problem with this is if at the time I happen to be using emacs and press C-g to cancel something, instead of ...
Joseph Garvin's user avatar
3 votes
1 answer
577 views

How to transfer special characters like äöü in the command line to emacsclient?

I try to create an interaction between Emacs and other applications, e. g. Microsoft Office. For example I have defined a VBA Macro in MS Outlook which starts a search in Emacs: strEmacsclientPath = ...
MostlyHarmless's user avatar
1 vote
1 answer
1k views

Emacs client starts in no windows mode

I have the following in .bashrc. export ALTERNATE_EDITOR="" export EDITOR="emacsclient -t" When I run, for example emacsclient something.tex & when running X, in a Konsole terminal (Konsole is ...
Faheem Mitha's user avatar
2 votes
3 answers
1k views

Open a frame for the first time (using `emacsclient -c`) showing other buffer than *scratch*

I have emacs configured to start org-agenda automatically and show it instead of *scratch*. Like this: (add-hook (quote after-init-hook) (lambda () ;; ... (...
shackra's user avatar
  • 2,782
3 votes
1 answer
1k views

emacs --daemon frozen when started with emacsclient file

This is somewhat of a follow up to Prevent emacsclient from blocking other instances. I am using emacsclient -a '' -nw --socket-name=$TTY where TTY=$(basename tty). I use emacs in the terminal and ...
asmeurer's user avatar
  • 1,592
16 votes
4 answers
3k views

Run a Function Only Once, Though a Hook Many Times

The context I'm using the after-make-frame-functions hook to load properly the themes in an emacs client/server configuration. Specifically this is the code snippet that I use to make that (based in ...
joe di castro's user avatar
6 votes
1 answer
1k views

Make emacsclient open multiple files in separate windows

When I open multiple files at once with emacs, like emacs file1 file2, it opens the two files side-by-side (in different windows in the same frame). But when I do the same with emacsclient, it only ...
asmeurer's user avatar
  • 1,592
6 votes
3 answers
1k views

Prevent emacsclient from blocking other instances

I use emacs in the terminal, typically with many emacs instances running at once in different tabs. This is a perfect use case for emacsclient, but it has always had various glitches that have stopped ...
asmeurer's user avatar
  • 1,592
5 votes
1 answer
574 views

function calls from command line, using emacsclient

I used to read my emails from command line with emacs -f gnus. To read my emails using emacsclient, I'm doing emacsclient -c --eval '(gnus)'. Just want to know, is there a simpler alternative to that? ...
Nsukami _'s user avatar
  • 6,541
6 votes
2 answers
360 views

Open edit-server files from emacsclient in a specific frame

Is there a way to designate a specific frame in which files opened with emacsclient will appear? I have one monitor that is dedicated to a fullscreen Emacs frame. I do most of my editing in that ...
nispio's user avatar
  • 8,255
11 votes
2 answers
5k views

Equivalent to --no-wait for emacs

The emacsclient program allows a flag --no-wait (abbreviated as -n) which will cause the emacs server to visit the specified file, and return immediately. emacsclient -n ~/.bashrc If I provide an ...
nispio's user avatar
  • 8,255
3 votes
3 answers
239 views

Inserting org-style links from external program

I have written this function to insert an org-style link to a file: (defun jay/insert-file-link (fname) "Insert link to file (called by Midnight Commander)." (interactive "s") (insert "[[") (...
jtgd's user avatar
  • 964
9 votes
3 answers
6k views

Multiple Emacs instances each with their own server?

In my setup, I have several (GNU) Emacs instances running simultaneously on my local machine, one for each project or task that I'm currently working on. I would like to be able to open buffers in an ...
Felix Hoffmann's user avatar
8 votes
1 answer
3k views

How to prevent emacsclient starting a new frame every time?

I have Ubuntu 12.04 running with Emacs 24.3. On computer startup, emacs --daemon is executed, and I have modified the emacs24.desktop to take emacsclient -c -a "" as exec parameter. However, whenever ...
strNOcat's user avatar
  • 211
56 votes
3 answers
38k views

How do I use emacsclient to connect to a remote emacs instance?

I'd like to be able to run emacs on one computer: server $ emacs --daemon And then connect to it from another: local $ emacsclient -c server Is this possible? If so, how?
liszt's user avatar
  • 745
26 votes
5 answers
10k views

Emacsdaemon and Emacsclient on Mac

OS: OS X 10.9.5, Mavericks GNU Emacs 24.3.1 (x86_64-apple-darwin13.1.0, Carbon Version 1.6.0 AppKit 1265.19) of 2014-04-03 on Rainers-MacBook-Pro-3.local I installed emacs via homebrew from ...
Rainer's user avatar
  • 907
46 votes
7 answers
4k views

How can I use my local Emacs client as the $EDITOR for remote machines I access over TRAMP?

I often use TRAMP to manage several remote servers, both for editing files and running remote shells in shell-mode. However, this does not work when a command uses the EDITOR variable to edit a file, ...
Tikhon Jelvis's user avatar
14 votes
2 answers
5k views

Using daemon mode in Gnome 3

I've gotten the Emacs daemon to work through the command line using the EmacsWiki page, but I'm stuck on how to get the client to run through the Gnome 3 launcher. How can I set up a Gnome desktop ...
tbekolay's user avatar
  • 243

1
3 4 5 6
7