unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to preprocess emacsclient with a mode choice?
@ 2013-11-28 14:48 Rustom Mody
  2013-11-29 16:21 ` Kevin Rodgers
       [not found] ` <mailman.7480.1385742029.10748.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 7+ messages in thread
From: Rustom Mody @ 2013-11-28 14:48 UTC (permalink / raw)
  To: help-gnu-emacs

If I want to jump-into a running emacs with visiting file foo I can do:
$ emacsclient foo

However this does not give me foo with the mode I want.
Lets say I want to visit foo with auto-fill-mode. So I try

$ emacsclient -e "(let ((find-file-hook (cons 'auto-fill-mode find-file-hook))) 
(find-file \"foo\"))"

This kindof works but does not pop up the emacs window.

How to get pop-up behavior of first with the mode-choice of second?


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-12-02  4:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-28 14:48 How to preprocess emacsclient with a mode choice? Rustom Mody
2013-11-29 16:21 ` Kevin Rodgers
     [not found] ` <mailman.7480.1385742029.10748.help-gnu-emacs@gnu.org>
2013-11-29 17:49   ` Rustom Mody
2013-11-29 19:46     ` Eli Zaretskii
     [not found]     ` <mailman.7495.1385754413.10748.help-gnu-emacs@gnu.org>
2013-11-30  0:47       ` Rustom Mody
2013-11-30  8:10         ` Eli Zaretskii
     [not found]         ` <mailman.7608.1385799063.10748.help-gnu-emacs@gnu.org>
2013-12-02  4:59           ` Rustom Mody

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).