all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: Best practices for launching Emacs on Windows 7/8
@ 2013-02-19 17:36 Buchs, Kevin
  0 siblings, 0 replies; 8+ messages in thread
From: Buchs, Kevin @ 2013-02-19 17:36 UTC (permalink / raw
  To: help-gnu-emacs, Ludwig, Mark

[-- Attachment #1: Type: text/plain, Size: 1886 bytes --]

Mark,

 

I use a .BAT file for the file association. However, a large percentage
of the time I use that, the client starts up and does not find the
already running server and it will try to start another server (in my
.emacs). So, I end up not using the association. Most often I drag and
drop files into the always open emacs window.

 

It is possible to make the file association have arguments (emacsclient
-alter...), but I've only found this can be done by editing the registry
via regedit. 

 

What are the problems you see with having a .BAT file? 

 

I know there are some nice tools out there that are windows programs
that can launch other windows programs with arguments. Maybe that would
make you feel better.

 

Kevin Buchs | Senior Engineer | SPPDG <http://www.mayo.edu/sppdg>  |
507-538-5459 | buchs.kevin@mayo.edu

Mayo Clinic | 200 First Street SW | Rochester, MN 55905 |
http://www.mayo.edu <http://www.mayo.edu/> 

 

 

-------------------------

What are the best practices for using/launching Emacs as Server on
Windows 7/8?

 

For example, on Windows Vista, I used to be able to make a file
association with .TXT files that invoked emacsclient with the
--alternate-editor=runemacs option so that if Emacs wasn't running, it
would be launched.

 

In Windows 7 and 8, the GUI simply does not allow any options.  I am not
sure if I could hack the registry directly to stuff the options in
there, but since the GUI no longer supports it, I fear the underlying
support might not be there either.  I have considered trying to
associate .TXT with something like a Emacs.BAT/Emacs.CMD file that could
invoke emacsclient with options, but this has its own problems, and
seems like a bad idea for ultimately launching a "windows mode" program
Emacs.exe (which is not a "command line mode" program).

 


[-- Attachment #2: Type: text/html, Size: 5540 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Best practices for launching Emacs on Windows 7/8
@ 2013-02-20 16:30 Buchs, Kevin
  0 siblings, 0 replies; 8+ messages in thread
From: Buchs, Kevin @ 2013-02-20 16:30 UTC (permalink / raw
  To: help-gnu-emacs, J?r?me M. Berger

Jerome, 

I think Mark was speaking of setting up a file association, so, for
example, all files with .TXT extension will open emacsclient. That is
the part that is restricted in Win-7 or worse. Setting up a shortcut is
still easy to do, like you describe.

Kevin Buchs | Senior Engineer | SPPDG | 507-538-5459 |
buchs.kevin@mayo.edu
Mayo Clinic | 200 First Street SW | Rochester, MN 55905 |
http://www.mayo.edu

-----Original Message-----
	I use emacsclient with the --alternate-editor=runemacs option in
Windows 7. Can't remember for sure how I set it up (I'm at home on Linux
right now), but I'm sure I did it from the GUI without any fancy
registry editing or stuff. IIRC you need to first create the shortcut
without specifying command line options, then go to the shortcut
properties (with A-RET or the context menu) where you should find a
field to add the options (can't remember whether there is a specific
field or whether you can add the options directly after the executable
name).



^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <mailman.20310.1361217600.855.help-gnu-emacs@gnu.org>]
* Best practices for launching Emacs on Windows 7/8
@ 2013-02-18 19:59 Ludwig, Mark
  2013-02-19 18:44 ` "Jérôme M. Berger"
  0 siblings, 1 reply; 8+ messages in thread
From: Ludwig, Mark @ 2013-02-18 19:59 UTC (permalink / raw
  To: help-gnu-emacs@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1052 bytes --]

What are the best practices for using/launching Emacs as Server
on Windows 7/8?

For example, on Windows Vista, I used to be able to make a file
association with .TXT files that invoked emacsclient with the
--alternate-editor=runemacs option so that if Emacs wasn't
running, it would be launched.

In Windows 7 and 8, the GUI simply does not allow any options.  I
am not sure if I could hack the registry directly to stuff the
options in there, but since the GUI no longer supports it, I fear
the underlying support might not be there either.  I have
considered trying to associate .TXT with something like a
Emacs.BAT/Emacs.CMD file that could invoke emacsclient with
options, but this has its own problems, and seems like a bad idea
for ultimately launching a "windows mode" program Emacs.exe
(which is not a "command line mode" program).

I am wondering what others do.

Perhaps I'm expecting too much automation, for example, the idea
that if Emacs Server isn't already running, it gets launched
seamlessly?

Thanks!
Mark

[-- Attachment #2: Type: text/html, Size: 3983 bytes --]

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

end of thread, other threads:[~2013-02-21 15:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-19 17:36 Best practices for launching Emacs on Windows 7/8 Buchs, Kevin
  -- strict thread matches above, loose matches on Subject: below --
2013-02-20 16:30 Buchs, Kevin
     [not found] <mailman.20310.1361217600.855.help-gnu-emacs@gnu.org>
2013-02-20 13:36 ` Jason Rumney
2013-02-21 15:23   ` Ludwig, Mark
2013-02-21 15:37     ` W. Greenhouse
2013-02-21 15:56   ` Ludwig, Mark
2013-02-18 19:59 Ludwig, Mark
2013-02-19 18:44 ` "Jérôme M. Berger"

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.