unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to load a specific file when calling emacsclient thru xming
@ 2011-01-05  4:29 Harry Putnam
  0 siblings, 0 replies; only message in thread
From: Harry Putnam @ 2011-01-05  4:29 UTC (permalink / raw)
  To: help-gnu-emacs

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.




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-01-05  4:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-05  4:29 How to load a specific file when calling emacsclient thru xming Harry Putnam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).