I am switching to GNU emacs for python and bash scripts. I really like this, but I don't like the X-window part of emacs. That way, I always use emacs -nw <my_file> to edit my files. However, when I link my .py and .sh files to emacs, I end up opening emacs in X-window mode when I double-click them from gnome-nautilus (Ubuntu 10.10).
What I would like to know: what should I add to my .emacs file in order to use emacs without X-window when I double click on my files? Note. I want emacs to open a terminal, possibly changing it according to my specifications (there is already an .sh script for this), run it myself and open my file.
How to do it?
Hooray!
EDIT : Thanks for all the answers! I have to give the most comprehensive verification, although, of course, it is based on the previous ones.
source share