Question: At the moment it saves the file with format:

```
.#main.c -> sara@sara.home.com.27017:1231918415

```

This makes it problematic since it ends with ".c".

I need it to be .#main.c#

Update: I have emacs 22.1

Answer: 
You can upgrade to emacs 24.3 and add to your .emacs file the following line:

```
(setq create-lockfiles nil)

```
That's strange, the default should have # at each end..

You can customize the name by redefining the auto-save-file-name-p and make-auto-save-file-name functions. In GNU emacs you would add the elisp to your .emacs file.