[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Calling emacsclient
From: |
William Gardella |
Subject: |
Re: Calling emacsclient |
Date: |
Wed, 14 Nov 2012 12:10:46 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
Hi.
Thorsten Jolitz <tjolitz@googlemail.com> writes:
> After some experimenting it seems to me that there is another bug, at
> least in my case
>
> ,---------------------------
> | (call 'emacsclient
> | "-e"
> | "(message \"CALL 1\")")
> `---------------------------
>
> does not work, while
>
> ,---------------------------
> | (call 'emacsclient
> | "--eval"
> | "(message \"CALL 1\")")
> `---------------------------
>
> does (on Archlinux).
This one I cannot reproduce. What is your emacs version?
> Now I wonder how I can call Emacsclient with a file I want to edit, but
> make it (immediately) evaluate some code when it starts up? Is that
> possible in the call(s) itself, or do I have to use hooks or something
> like that?
Depending on what this code is, you may be able to do it with a
file-local variable or a hook. Or you could have emacsclient call
something like
(progn
(set-buffer (find-file "~/somecode.c"))
(some-nifty-code-here))
Hope this helps,
WGG
--
I use grml (http://grml.org/)