3
1
I would like to make Firefox view text files not in its internal editor, but in the external editor (namely EmacsClient).
Is it possible to change this default behavior of Firefox?
EDIT: I beg your pardon for being inconcise, I'll try to state the matter once again. First thing to mention is that I use the Linux version of Firefox. That means that unlike the Windows version the contents of the application bindings dialog is very scarce.
When I click on the link to a text file (be it remote or local) by default Firefox opens it in the internal browser. I've tested, somehow it looks at file extension - when for example I make a file with .mpg extension, the behaviour is as it should be - the dialog with "Open With..." and stuff. When the file has unknown extension (unknown to /etc/mime.types), in my case it's .out, pure text format - the default behaviour is to open it in a Firefox window. That very thing I need to change.
@pepoluan: Sorry, my fault. Should have said that i'm on linux. I'll update the question. – None – 2011-03-10T12:22:35.783
@pooh : um, that's the menu tree of Firefox. I've never used Firefox on Linux before, does it not have similar menu? – pepoluan – 2011-03-10T12:27:12.223
@Arjan: You got me wrong... I meant that i use the file:/// facility to browse local FS in firefox. Should have added "in firefox" to "browse", because that's where the original understanding was diverted. – None – 2011-03-10T12:53:26.280
@pooh : I see... I'll edit my answer – pepoluan – 2011-03-10T13:22:52.533
@pepoluan: I think the menu tree is the same, but invoked from Edit→Preferences→Applications tab. I'll try to modify this rdf thingy but it's scary i must admit. – None – 2011-03-10T13:28:42.600
@pooh : true, it's scary. I myself can't help you with that file. Just be careful... – pepoluan – 2011-03-10T13:33:13.663
According to http://kb.mozillazine.org/MimeTypes.rdf: In general, it is not advisable to edit this file manually because of its complexity and the fact that interfaces are provided to edit it in Firefox
– Arjan – 2011-03-10T13:53:49.960@Arjan : indeed. But I don't think the Edit/Preferences/Applications dialog provides a way to add new MIMEtypes. At least, not in Windows. – pepoluan – 2011-03-10T14:03:36.493
@pepoluan: Nor in Linux. – None – 2011-03-10T14:56:58.300