]> git.eshelyaron.com Git - emacs.git/commitdiff
Make shell use completion-at-point for autocompletion.
authorFabián Ezequiel Gallina <fgallina@cuca>
Thu, 17 May 2012 03:02:58 +0000 (00:02 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 17 May 2012 03:02:58 +0000 (00:02 -0300)
lisp/progmodes/python.el

index 78b541d8a0e76f0168b35a2cad4a4aae7daefe4b..af441460562683c2ddaab6e13ba6578be1f8fb5f 100644 (file)
@@ -946,6 +946,10 @@ OUTPUT is a string with the contents of the buffer."
             'python-pdbtrack-comint-output-filter-function)
   (set (make-local-variable 'compilation-error-regexp-alist)
        python-shell-compilation-regexp-alist)
+  (define-key inferior-python-mode-map [remap complete-symbol]
+    'completion-at-point)
+  (add-hook 'completion-at-point-functions
+            'python-shell-completion-complete-at-point nil 'local)
   (compilation-shell-minor-mode 1))
 
 (defun run-python (dedicated cmd)