title: How to set emacs to open new files in current instance on Ubuntu/Mint?
body: <p>I want to keep emacs open most of the time, and then whenever I open a text file, python file, etc (from nautilus/finder), I want it to open as a new buffer in my current emacs instance, rather than starting a new instance.</p>
  
  <p>I tried following this <a href="http://anxiousmofo.wordpress.com/2008/08/04/opening-files-in-an-already-running-instance-of-emacs/" rel="noreferrer">guide</a>:</p>
  
  <p>I wasn't really sure about what to do with the file, but what I tried was copying it to /usr/bin/emacs_openfile, adding #!/bin/sh to the first line, and running chmod +x emacs_openfile</p>
  
  <p>However, it doesn't work for me and just opens a new instance, even though I was able to associate text files with this program.</p>
  
  <p>On a sidenote, I set emacs as the default editor using <a href="https://superuser.com/questions/168702/how-do-i-change-the-default-text-editor-in-ubuntu">this</a>.</p>