How can I change my default text editor from gedit to Emacs?
Ubuntu – How to change the default text editor
default-programs
Related Question
- Ubuntu – How to make vim the default graphical text editor
- Ubuntu – Set emacs -nw as default editor
- Ubuntu – How to open the default GUI text editor in Ubuntu or Lubuntu via a script
- Ubuntu – Change Xubuntu’s default text editor globally
- Ubuntu – Change the default editor when sudo visudo
- Ubuntu – Gedit as the default editor in crontab
Best Answer
Here is what worked in my case:
This also works on 12.04 and 13.04.
@ Edit: based on comments it does work on all distros until 20.04