On linux, files tend to be identified by type, not extension.
org-mode files are text files, but only a few editors support org-mode (emacs, vim, etc.)
This file can be used to associate org-mode files to a specific editor (like emacs), while using other editors for plain text files.
-
Save as /usr/share/mime/packages/org.xml;
-
Run
$ sudo update-mime-database /usr/share/mime
-
If you are using Nautilus (most Ubuntu users probably are), restart it.
$ killall nautilus $ nautilus -n &
-
Open nautilus, navigate to your file location, right click on it, select 'Open with', search for emacs, and 'Set as default'.
Created by Ivan Perez based on http://askubuntu.com/a/55684