I've installed Sublime Text 3 from the .deb found here: http://www.sublimetext.com/3
Now, how to set it as the default text editor in place of gedit in Mint 16?
file associationlinuxlinux-mintsublime-text-3text-editors
I've installed Sublime Text 3 from the .deb found here: http://www.sublimetext.com/3
Now, how to set it as the default text editor in place of gedit in Mint 16?
Best Answer
Open
/usr/share/applications/defaults.list
in Sublime:Search for all instances of
gedit
and replace them withsublime_text
. Save the file, quit Sublime, log out and back in, and you should be all set.EDIT
While the above instructions should work with any
.deb
-based system (I use Ubuntu), apparently there is an issue with Mint where changes to/usr/share/applications/defaults.list
are lost upon reboot. To work around this, do the following:~/.local/share/applications/defaults.list
in Sublime. The first line should be[Default Applications]
./usr/share/applications/defaults.list
in Sublime. Hit CtrlF to open theFind
dialog and typegedit
into the search box.Find All
button to select all the instances ofgedit
in the file.~/.local/share/applications/defaults.list
, hit CtrlV to paste the lines containinggedit
.Replace
dialog. Search forgedit
and replace withsublime_text
. Hit CtrlAltEnter to Replace All (or click theReplace All
button) and you're all set.~/.local/share/applications/defaults.list
, log out and back in, and Sublime Text should now be your default text editor.