[Top][All Lists]

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

Re: Proposal: emacsclient --readonly

From: W. Greenhouse
Subject: Re: Proposal: emacsclient --readonly
Date: Thu, 14 Mar 2013 02:45:38 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

address@hidden writes:

> As distraction to our toddler temper-tantrum, I'd like to propose a
> new feature for emacsclient.
> I use emacsclient to open files frequently and I generally immediately
> do M-x view-mode once the frame pops up.  I'd like to be able to open
> the file directly in view-mode when I invoke emacsclient.
> I'd be interested in any suggestions people have on how to accomplish
> this using emacsclient currently.  In the absence of any ideas, I'd like
> to propose the folowing patch which adds a `--readonly,-r' option to
> emacsclient (and server.el) (I had originally called it --view-mode,-v but
> getopt_long_only complained that it was ambiguous if abbreviated.)
> I'm eager to hear any suggestions people might have to do this without
> changing emacsclient.  Or maybe this is a reason to add a more generic
> feature to emacsclient to enable/disable modes after a file is opened.
> --
> Michael R. Mauger  -  FSF Member #4247  -  Emacs sql.el Maintainer

Without changing emacsclient, my approach would be the slightly

emacsclient --eval '(view-file "path/to/file")'


reply via email to

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