 (setq ropemacs-guess-project t)
 (setq ropemacs-enable-autoimport t)
 (setq ropemacs-autoimport-modules '("os" "shutil" "sys" "logging"))
+(setq ropemacs-separate-doc-buffer nil)
 
 ;; automatically open a rope project if there is one
 ;; in the current or in the upper level directory


(ac-define-source nropemacs
  '((candidates . ac-ropemacs-candidates)
    (symbol     . "p")))

(ac-define-source nropemacs-dot
  '((candidates . ac-ropemacs-candidates)
    (symbol     . "p")
    (prefix     . c-dot)
    (requires   . 0)))

(defun ac-python-mode-setup ()
  (add-to-list 'ac-sources 'ac-source-yasnippet))

;(add-hook 'python-mode-hook 'ac-python-mode-setup)
(add-hook 'python-mode-hook 'ac-nropemacs-setup)
;(add-hook 'rope-open-project-hook 'ac-nropemacs-setup)

(add-hook 'python-mode-hook
          '(lambda () (eldoc-mode 1)) t)
