In file explorer (Nautilus) under Ubuntu, I can select a file and right click and scroll to:
open with other application
My question is how can I add
emacs to that list of "other application"
After we had installed emacs we may not yet have a .desktop file to integrate it with the desktop environment.
We then can copy the
We can then select Emacs in the list of "Open With Other Applications -> Show other applications" on right click of a file with a content we want to associate Emacs with.
After having selected the now present Emacs (note that there is no icon defined yet if using a custom dektop file, give the path to an icon in your emacs.desktop above) we can then choose to "Open with Emacs" in the Nautilus context menu:
To undo this we simply right click on the Emacs entry in the menu that pops up after having selected "Open With Other Application..." and say "Forget association":
I use emacs-snapshot available here (the latest release, good if you want to extend your environment with additional packages) and this is my
Note that for emacsclient to work, you need to have this in your