diff options
| author | Fabián Ezequiel Gallina | 2012-05-17 00:02:58 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2012-05-17 00:02:58 -0300 |
| commit | ed0eb594649dbdfbf130c2b0d4e6297226258f87 (patch) | |
| tree | 6b197b27be9d54ac7722a92f0346826d8c3768dc /lisp/progmodes | |
| parent | fc87f759ed9952e601e05cbd2229a1b3aec80158 (diff) | |
| download | emacs-ed0eb594649dbdfbf130c2b0d4e6297226258f87.tar.gz emacs-ed0eb594649dbdfbf130c2b0d4e6297226258f87.zip | |
Make shell use completion-at-point for autocompletion.
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/python.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 78b541d8a0e..af441460562 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -946,6 +946,10 @@ OUTPUT is a string with the contents of the buffer." | |||
| 946 | 'python-pdbtrack-comint-output-filter-function) | 946 | 'python-pdbtrack-comint-output-filter-function) |
| 947 | (set (make-local-variable 'compilation-error-regexp-alist) | 947 | (set (make-local-variable 'compilation-error-regexp-alist) |
| 948 | python-shell-compilation-regexp-alist) | 948 | python-shell-compilation-regexp-alist) |
| 949 | (define-key inferior-python-mode-map [remap complete-symbol] | ||
| 950 | 'completion-at-point) | ||
| 951 | (add-hook 'completion-at-point-functions | ||
| 952 | 'python-shell-completion-complete-at-point nil 'local) | ||
| 949 | (compilation-shell-minor-mode 1)) | 953 | (compilation-shell-minor-mode 1)) |
| 950 | 954 | ||
| 951 | (defun run-python (dedicated cmd) | 955 | (defun run-python (dedicated cmd) |