Emacsclient is a feature of GNU Emacs which allows for sending commands to a running Emacs instance.

learn more… | top users | synonyms

0
votes
0answers
15 views

Windows cmd.exe: how to send commands with special characters to emacsclient? [duplicate]

I finally found a way to send commands from Windows 7 command line (cmd.exe) to emacsclient. How can I send a command to Emacs 24 from VBA in MS Office? However, when those commands contain special ...
0
votes
1answer
70 views

How can I send a command to Emacs 24 from VBA in MS Office?

I want to invoke commands from within MS Office application which have a direct effect on my (open) Emacs application, for example do a search for the currently selected text in Emacs I wonder how ...
0
votes
1answer
44 views

how to cd to pwd of emacsclient when exiting

Can someone provide a hook to change directory into the current directory of emacsclient when exiting emacsclient? I often navigate to some files via terminal, pop open emacsclient to edit some ...
1
vote
0answers
217 views

emacsclient super key or hyper key in iterm2

What the title says: I want to switch to using an emacs-server / emacs-client model instead of using the GUI for Mac OS X. I use iTerm2. I would like to map the function key (fn) to super or hyper. I ...
1
vote
0answers
100 views

How to kill buffers when quitting a client frame in emacs daemon

I'm using emacs as a daemon on OSX ML. When I close an instance emacsclient -t, I'd like emacs to kill all the buffers I've opened within the instance of emacsclient. Doing C-x C-c or C-x 5 0 does ...
1
vote
0answers
96 views

Using Emacs client with multiple clients

I recently started using emacsclient, and I like it a lot. Until now I haven't had any problems, but I just made a new tab in my terminal and tried opening another file, but emacs gets stuck on ...
0
votes
2answers
208 views

git emacsclient issues

I set my editor variable like so: git config --global core.editor "`which emacsclient` -t -s" and get this output whenever I want to edit the message during a commit emacsclient: aliased to ...
1
vote
1answer
90 views

How to get emacsclient working on a different machine?

I've been using emacsclient successfully, however, recently, I needed to move to a different machine and on the new machine it fails with the error: emacsclient: can't stat /tmp/esrv1140-hostname: ...
1
vote
0answers
206 views

How do I get my .emacs init files to load correctly with emacs server?

My init files are set up such that my .emacs file is a symlink pointing to an OS-specific init that in turn loads the main init file with configs that are unaffected by OS. I've had no problems with ...
0
votes
1answer
222 views

OS X Mountain Lion, emacsclient -c Can't Create Frame on Window System X

EDIT: I have accepted the answer below because it answers my question but I wasn't aware that if one uses the x11 emacs, it is butt ugly and so I have resorted to just putting start-server in my init ...
2
votes
1answer
190 views

How can I kill the buffer when I exit emacs client

I am using emacsclient to connect to an emacs server. When I exit my emacsclient, I use Ctrl-X Ctrl-C just like how I normally exit emacs. How can I kill the buffer on the emacs server? I find that ...
2
votes
2answers
263 views

Emacs “start-server” does not change variable “server-mode”

I'm running Emacs 23 in Debian Squeeze. ~/.emacs does not contain any server-related commands. I launch Emacs and enter C-h v server-mode, which returns nil, as no server is running. I then enter M-x ...
1
vote
1answer
265 views

Emacsclient - how do I start in a specific command?

I use emacsclient instead of emacs directly. Suppose I want to start a frame in emacsclient with the command "mu4e" (to run an excellent little email client). For emacs I would simply do emacs -f ...
2
votes
3answers
801 views

emacsclient: create a frame if a frame does not exist

I start emacs server using emacs --daemon then open files using emacsclient filename.ext but the first file has to be opened using emacsclient -c filename.ext in order to create a new frame ...
3
votes
4answers
747 views

Start emacs 23.1 on windows XP only once (emacsclientw.exe)

I have (server-start) in my .emacs file and set the variables HOME, ALTERNATE_EDITOR (=runemacs.exe) and EMACS_SERVER_FILE set. When I start emacsclientw.exe test.txt the first time, I expect ...
1
vote
1answer
87 views

How can I achieve the opposite of kde-open?

Is there any way to achieve the opposite of what kde-open does in KDE? I mean, I want to be able to open files using emacs inside the terminal, instead of using the X version of emacs. I already run ...
2
votes
1answer
420 views

difference between visiting a file through emacs or with emacsclient?

The reason why I ask is for most thing they appear similar, except when using Thunderbird External Editor Extension (with editor designated as emacsclient -c). Closing the frame created with this ...
3
votes
2answers
423 views

How to set the exit status for emacsclient

I have found myself using my main Emacs session (CocoaEmacs in OSX) to edit my bash command line. To do so I have my EDITOR set to emacsclient. Then I edit the line in Emacs and save and quit that ...
0
votes
1answer
276 views

How should one safely background a “daemon” process when started manually?

I once used emacsclient as my editor from the command line, but it bothered me that it would hang the terminal window while I was working in emacs. I tried backgrounding the process by running ...
0
votes
2answers
547 views

Why does /tmp/emacs${UID}/server get stale after last emacsclient exits?

With GNU Emacs 23.2.1, that I installed from sources on 2 different GNU/Linux distributions (CentOS 4.x, and Ubuntu Hardy - both with KDE 3.x) I do: $ emacs --daemon ("emacs") Starting Emacs daemon. ...