[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to load a specific file when calling emacsclient thru xming
From: |
Harry Putnam |
Subject: |
How to load a specific file when calling emacsclient thru xming |
Date: |
Tue, 04 Jan 2011 22:29:29 -0600 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
emacs-24
I want to load a specific file that sets font, colors and a few other
things when I make a remote call for emacs thru Xming and emacsclient.
I've been doing manually like this:
In the Xming launch script, just like you might call emacs with
emacsclient from the command line.
`emacsclient -s nognus -c'
So I connect to a running emacs daemon named `nognus' which is usually
running gnus already.
And then on local machine instance of emacs I just use load-library to
load the stuff I want.
Now I want that stuff loaded when emacs comes up on the local
machine. Instead of doing it manually after wards.
But trying to pass a command to emacs to load a specific file thru
emacsclient does not appear to work like it does when you initially
start emacs.
Trying this:
emacsclient -s nognus -c -l ~/somefile
Fails and just tells me the -l switch is not recognized by
emacslcient.
So I wondered if there is a way to load a file in this way, maybe
since emacs is already running the command line switch one used when
starting emacs is not possible ...
I imagine one can pass something into emacs from the cmdline thru
emacsclient that will cause emacs to load the stuff I want loaded.
I'm not finding examples of the syntax needed to do something like
that from the cmdline.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- How to load a specific file when calling emacsclient thru xming,
Harry Putnam <=