help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to preprocess emacsclient with a mode choice?


From: Rustom Mody
Subject: Re: How to preprocess emacsclient with a mode choice?
Date: Fri, 29 Nov 2013 16:47:45 -0800 (PST)
User-agent: G2/1.0

On Saturday, November 30, 2013 1:16:27 AM UTC+5:30, Eli Zaretskii wrote:
> > Date: Fri, 29 Nov 2013 09:49:09 -0800 (PST)
> > From: Rustom Mody 
> > 
> > How to programmatically (ie in elisp) visit a file with a specific mode?
> > say a .c file in text mode
>
> What's wrong with turning on the mode as part of the arguments you
> pass to emacsclient?

You mean like this?
emacsclient -e "(progn (find-file \"foo\") (auto-fill-mode) (raise-frame))"

Heh! thats better than anything I came up with -- thanks!

Still wonder what makes the raise-frame necessary...
Also something fundamentally is different in the client-server relation between 
this and:
emacsclient foo

In the latter I have to do C-x #. In the former not


reply via email to

[Prev in Thread] Current Thread [Next in Thread]