If possible please send me .emacs code too.
Thanks,
Shailesh
__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
You can try gnuserv.
http://www.gnu.org/software/emacs/windows/faq3.html#assoc
Damien Bonvillain
Shailesh> Hi, I want to use only one emacs instance. When i
Shailesh> associate .java file with Emacs and i try to open java
Shailesh> file by double clicking on it in Windows Explorer, It is
Shailesh> always creating new instance. How i use existing emacs
Shailesh> to open same file?
Once emacs is open, you can load as many files as you want either by
using the emacs menu File->Open File or the keybinding C-x C-f and you
will be prompted for a filename. The different files you have open
are called buffers in emacs and you can switch between either by using
the 'Buffers' menu or the keybinding C-x b.
You can also have multiple frames of emacs open File->New Frame.
It is not unusual for emacs maniacs to have 100s of files open
simultaneously. You can store the emacs sessions between visits so
you don't have to reopen all the files using desktop save by adding
this to .emacs:
;; Save workspace between visits
(require 'desktop)
(desktop-load-default)
(desktop-read)
Have fun -- let us know when you hit the 400 buffer mark.
John Hunter
>>>>> "Shailesh" == Shailesh Joshi <josh...@yahoo.com> writes:
Shailesh> Hi, I want to use only one emacs instance. When i
Shailesh> associate .java file with Emacs and i try to open java
Shailesh> file by double clicking on it in Windows Explorer, It is
Shailesh> always creating new instance. How i use existing emacs to
Shailesh> open same file?
John> Once emacs is open, you can load as many files as you want
John> either by using the emacs menu File->Open File or the
John> keybinding C-x C-f
Using windows explorer can be a good way of going things as well
though.
You have two options. Drag and drop to emacs works these days. Or you
can use "gnuclient" or "emacsclient". Instead of opening emacs
directly you open gnuclient, and this will open a file in an existing
emacs.
I think emacsclient comes with emacs. You can get gnuclient by
searching with google.
Phil
>>>>>> "Shailesh" == Shailesh Joshi <josh...@yahoo.com> writes:
>
> Shailesh> Hi, I want to use only one emacs instance. When i
> Shailesh> associate .java file with Emacs and i try to open java
> Shailesh> file by double clicking on it in Windows Explorer, It is
> Shailesh> always creating new instance. How i use existing emacs to
> Shailesh> open same file?
>You have two options. Drag and drop to emacs works these days. Or you
>can use "gnuclient" or "emacsclient". Instead of opening emacs
>directly you open gnuclient, and this will open a file in an existing
>emacs.
>
>I think emacsclient comes with emacs. You can get gnuclient by
>searching with google.
>
>Phil
Once you have emacsclient or gnuclient working, you can add entries to
the Windows registry to bind .java files to be opened by emacs.
I answered this question a while back for a guy who wanted to do the
same thing with .py (python) files.
Check out this article on google groups.
--
Mike Slass
,---- WRQ, Inc.
|
| We specialize in integration software and services that let you
| quickly adapt your host-intensive environment to meet new business
| needs.
`----