Solved Associate file type with cygwin/emacs program in Windows 7

July 9, 2015 at 17:17:34
Specs: Windows 7, 4 GB

I want to use Emacs as and editor and shell. On Windows 7 I installed cygwin , X11 and emacs. In terminal I added to /etc/profile file these lines:

XWin -multiwindow 2> /dev/null&
export DISPLAY=:0.0
sleep 1
emacs 2> /dev/null&

I created a shortcut that execute this command: C:\rhcygwin64\bin\mintty.exe - Now every time I start that shortcut it starts emacs. No problem. My goal is: associate some file types like .txt , .csv and etc with emacs in order when I start foo.txt it'll open in emacs. When I tried to do it 'Set Associtation' control it accepts only file name and it does not take '-'. Hence when I try to open foo.txt it does not work. I tried to create a shortcut to mintty.exe but it didn't work either. Could someone help me to create association in order to start to mintty.exe but rather mintty.exe - ? Thanks in advance


See More: Associate file type with cygwin/emacs program in Windows 7

Report •

#1
July 10, 2015 at 10:25:05
✔ Best Answer
I have absolutely no experience with emacs.. but interested to know sumat about (even if only a very little bit...).

Does thus link provide any possible workaround?

It details how to install emacs; and then presumably "their" method would allow you associate a file with that installation/location?

http://ergoemacs.org/emacs/emacs_ms...

and are you familiar with the site - which might as well be talking about early Assyrian cuniform, as I have no idea really what it's all about..
.
https://www.gnu.org/software/auctex...

but this link looks more promising (even to this total novice re' emacs...)?

http://www.gnu.org/software/emacs/m...

section 3.7 onwards?


Report •

#2
July 10, 2015 at 15:49:07
Thanks for suggestion. I tried it ... but it did not work for me.
I think my issue is because I'm not using just emacs (which is easy associate) but run emacs that starts from inside Cygwin and use X server.
Anyway ... thank you ..

Report •
Related Solutions


Ask Question