How can I change my default text editor from gedit to Emacs?
|
The answer didn't work on 12.10. Here is what worked in my case:
This also works on 12.04 and 13.04. |
|||||||||||||||||||||
|
|
To change default text editor across the file types, try updating gnome-text-editor configuration.
In some cases:
|
||||
|
|
|
Right click on a text file, point to "Open With" and it'll show other editors in a sub-menu. Click on "Other Application...". It'll show you a dialog with a list of applications, select Emacs and make sure the "Remember this application for "plain text document" file" option is checked. Click "Open". |
|||||||||||||||||||||
|
|
A more robust solution would be to replace the bindings in
|
|||||||||
|
|
|||
|
|
|
If you are working from the terminal then I would add the following to your .bashrc file (or the config file for your favorite shell):
|
|||
|
|
|
If you would like to replace gedit with any other text editor for all file types, the easiest is to edit the
Just find and replace all
Save the file, close it and it's done. |
||||
|
|
|
I don't use a DE, but for my configurations the next command is the best:
|
||||
|
|
|
To set Pluma as default text editor use this:
|
|||
|
|
export EDITOR=emacs- and perhaps add that to your.bashrcso it becomes your default. – SDsolar Nov 17 '17 at 21:24