From 6f72bdfd322db203c50dff54c2c5b4f87887cb0d Mon Sep 17 00:00:00 2001 From: toctan Date: Thu, 4 Sep 2014 09:49:07 +0800 Subject: [PATCH] Add anaconda-mode for python --- modules/prelude-python.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/prelude-python.el b/modules/prelude-python.el index 10ca704..20cd8bb 100644 --- a/modules/prelude-python.el +++ b/modules/prelude-python.el @@ -33,6 +33,12 @@ ;;; Code: +(prelude-require-package 'anaconda-mode) + +(when (boundp 'company-backends) + (prelude-require-package 'company-anaconda) + (add-to-list 'company-backends 'company-anaconda)) + (require 'prelude-programming) ;; Copy pasted from ruby-mode.el @@ -77,6 +83,8 @@ (defun prelude-python-mode-defaults () "Defaults for Python programming." (subword-mode +1) + (anaconda-mode) + (eldoc-mode) (setq-local electric-layout-rules '((?: . (lambda () (if (python-info-statement-starts-block-p) @@ -91,6 +99,7 @@ (add-hook 'python-mode-hook (lambda () (run-hooks 'prelude-python-mode-hook))) + (provide 'prelude-python) ;;; prelude-python.el ends here