gabrielelanaro / emacs-for-python

Collection of emacs extensions specifically collected for python development, with workflow guidelines!
http://gabrielelanaro.github.com/emacs-for-python
GNU General Public License v3.0
809 stars 151 forks source link

Opening a new file problem #106

Closed johannspies closed 11 years ago

johannspies commented 11 years ago

According to the documentation:

To open a new file you can proceed as usual, with the C-x C-f keystrokes, you would see the ido-mode prompt with fuzzy completion enabled.

This 'fuzzy completion' is making it difficult to open a new file in a directory full of python files. At the moment I cannot open a new file. If I type in the new file name with a .py extension and press enter, the first file in the list is opened. If I put a character like _ after .py it will open the file, but when I want to to save it as .py it again wants to overwrite some other python file in the directory.

How can I disable this irritating 'fuzzy completion'?

johannspies commented 11 years ago

I have removed all references to epy in my .emacs and that stopped this behaviour. I don't know what else was disabled by doing this though.

gabrielelanaro commented 11 years ago

Hi! There are several ways to solve your problem!

1) To open a new file (in the "fuzzy thing"), simply type the name of your file and press C-j, this will create a new file with that name 2) Just type C-f to temporary fall back on the normal emacs find file 3) at the end of your .emacs, put (ido-mode nil) and this will completely disable the fuzzy thing

johannspies commented 11 years ago

There are several ways to solve your problem!

Thanks Gabriel!

Regards Johann

Johann Spies Telefoon: 021-808 4699 Databestuurder / Data manager Faks: 021-883 3691

Sentrum vir Navorsing oor Evaluasie, Wetenskap en Tegnologie Centre for Research on Evaluation, Science and Technology Universiteit Stellenbosch.

 "Moreover if thy brother shall trespass against thee, 
  go and tell him his fault between thee and him alone:
  if he shall hear thee, thou hast gained thy brother." 
                      Matthew 18:15 

E-pos vrywaringsklousule

Hierdie e-pos mag vertroulike inligting bevat en mag regtens geprivilegeerd wees en is slegs bedoel vir die persoon aan wie dit geadresseer is. Indien u nie die bedoelde ontvanger is nie, word u hiermee in kennis gestel dat u hierdie dokument geensins mag gebruik, versprei of kopieer nie. Stel ook asseblief die sender onmiddellik per telefoon in kennis en vee die e-pos uit. Die Universiteit aanvaar nie aanspreeklikheid vir enige skade, verlies of uitgawe wat voortspruit uit hierdie e-pos en/of die oopmaak van enige lês aangeheg by hierdie e-pos nie.

E-mail disclaimer

This e-mail may contain confidential information and may be legally privileged and is intended only for the person to whom it is addressed. If you are not the intended recipient, you are notified that you may not use, distribute or copy this document in any manner whatsoever. Kindly also notify the sender immediately by telephone, and delete the e-mail. The University does not accept liability for any damage, loss or expense arising from this e-mail and/or accessing any files attached to this e-mail.