summaryrefslogtreecommitdiffstats
path: root/lisp/ravi-init-python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ravi-init-python.el')
-rw-r--r--lisp/ravi-init-python.el43
1 files changed, 0 insertions, 43 deletions
diff --git a/lisp/ravi-init-python.el b/lisp/ravi-init-python.el
index 70234c9..ba37dc6 100644
--- a/lisp/ravi-init-python.el
+++ b/lisp/ravi-init-python.el
@@ -82,49 +82,6 @@
:ensure t
)
- ;; Use pymacs+ropemacs for code completion plus documentation browsing.
- ;; The main issue is that this requires both python-side and emacs-side
- ;; support, and hence cannot be installed as a package from MELPA.
- (use-package pymacs
- :disabled t
- :init
- (progn
- ;; Many bindings provide same functionality as from other packages.
- (setq ropemacs-global-prefix nil)
- ;(setq ropemancs-local-prefix nil)
- ;(setq ropemacs-enable-shortcuts nil)
- )
- :config
- (progn
- (pymacs-load "ropemacs" "rope-")
- (bind-key "C-c C-d" 'rope-show-calltip python-mode-map)
-
- ;; Auto-complete sources; see
- ;; http://www.cx4a.org/pub/auto-complete-python.el
- (defvar ac-ropemacs-completions-cache nil)
-
- (defvar ac-source-ropemacs
- '((init
- . (lambda ()
- (setq ac-ropemacs-completions-cache
- (mapcar
- (lambda (completion)
- (concat ac-prefix completion))
- (ignore-errors
- (rope-completions))))))
- (candidates . (lambda ()
- (all-completions ac-prefix ac-ropemacs-completions-cache)))))
-
- (defun ac-ropemacs-setup ()
- (ac-ropemacs-require)
- ;(setq ac-sources (append (list 'ac-source-ropemacs) ac-sources))
- (setq ac-omni-completion-sources '(("\\." ac-source-ropemacs))))
-
- (add-hook 'python-mode-hook 'ac-ropemacs-setup)
-
- )
- )
-
;; Use jedi.el for code completion plus documentation browsing.
;; The main issue is that this requires both python-side and emacs-side
;; support, but the python-side support cannot be installed as a package