Skip to content

Instantly share code, notes, and snippets.

@donlindsay
Created June 6, 2015 02:33
Show Gist options
  • Save donlindsay/7ed85b52a4d2d7e48cfb to your computer and use it in GitHub Desktop.
Save donlindsay/7ed85b52a4d2d7e48cfb to your computer and use it in GitHub Desktop.
org-mode mimetype definition for firefox mimeTypes.rdf
<RDF:Description RDF:about="urn:mimetype:text/x-org-mode"
NC:prettyName="Org-Mode file"
NC:value="text/x-org-mode"
NC:editable="true"
NC:description="A file formatted in Emacs Org Mode."
NC:fileExtensions="org"/>
@donlindsay
Copy link
Author

Currently Firefox 35.0.8 doesn't have an easy way to add custom mime types other than editing this file (profile/mimeTypes.rdf), apparently.
You can add a handler declaration, too, if you want to send it straight to Emacs, or whatever, with
NC:handlerProp or NC:externalApplication, but this is probably better done with Firefox's own dialogs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment