Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 24382  / 2 Years ago, sun, january 30, 2022, 7:31:49

None of this, this nor this worked in setting my default editor. Haven't tried this, I'm afraid it won't work either.



So how do I set the default editor to emacs or possibly emacsclient in 13.04 through the CLI/terminal?



Double-clicking on a text file still opens up to gedit.



I specifically say 13.04 because I had no problem in doing so in 11.04 from which I recently upgraded from.


More From » 13.04

 Answers
6

This is how you set default applications..



Point and click:



Right click on the text file you want to open, choose Properties and then Open with. You should find Emacs in the Recommanded Software list. Click the Set as default button.



Using the commandline:



If you want to set default applications using the terminal, you use to XDG tool.



xdg-mime default emacs23.desktop text/plain


Then try to open a plain text document.



If you want to set default applications for the current user, edit this file:



~/.local/share/applications/mimeapps.list


To edit global settings by hand, see this file:



/usr/share/applications/default.list


Edit: Thanks to Oli how made me aware of XDG in the comments below the question


[#29430] Tuesday, February 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oileweaty

Total Points: 337
Total Questions: 108
Total Answers: 105

Location: Western Sahara
Member since Mon, May 3, 2021
3 Years ago
;