Am 22.10.2011 04:03, schrieb Gene Horodecki:
At the risk of being a pest, I thought I would explain how far I have
gotten and what doesn't work for me. Basically the code-completion
doesn't seem to be working. For example:
import time
mytime = time.cl<TAB>
and I get nothing.
Also, I have read I should be able to do something like,
myfile = open( ,
and get a signature for the open function? Not working either.
I switched to GNU emacs, and I am using the .el for GNU emacs. I copied
the .el files into ~/.emacs.d/site-lisp. Here is the contents of the
directory:
#~/.emacs.d/site-lisp$ ls
highlight-indentation.el ido.el pycomplete.el python-mode.el
Here is the contents of my .emacs file:
:~$ cat .emacs
(add-to-list 'load-path "~/.emacs.d/site-lisp")
;; python-mode settings
(setq auto-mode-alist (cons '("\\.py$" . python-mode) auto-mode-alist))
(setq interpreter-mode-alist(cons '("python" . python-mode)
interpreter-mode-alist))
;; path to the python interpreter, e.g.: ~rw/python27/bin/python2.7
(setq py-python-command "/usr/bin/python2.6")
(autoload 'python-mode "python-mode" "Python editing mode." t)
;; pymacs settings
(setq pymacs-python-command py-python-command)
(autoload 'pymacs-load "pymacs" nil t)
(autoload 'pymacs-eval "pymacs" nil t)
(autoload 'pymacs-apply "pymacs")
(autoload 'pymacs-call "pymacs")
(require 'pycomplete)
(require 'ido)
(ido-mode t)
Can anyone help me? Thanks.
See https://bugs.launchpad.net/python-mode/+bug/858621
Workaround: make a tags table, open it and use M-x dabbrev-expand
resp. its key
if you dont have a tags table ready yet, just opening some files with
related code delivers a reasonable completion.
Cheers
_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode