Add cython-mode to Python contrib layer

This commit is contained in:
Diego Berrocal 2015-01-22 11:22:19 -05:00 committed by syl20bnr
parent 053b9b0e3e
commit 60da87b4df

View file

@ -23,6 +23,7 @@
python
semantic
smartparens
cython-mode
)
"List of all packages to install and/or initialize. Built-in packages
which require an initialization must be listed explicitly in the list.")
@ -50,6 +51,16 @@ which require an initialization must be listed explicitly in the list.")
:defer t
:init (add-to-list 'company-backends 'company-anaconda)))
(defun python/init-cython-mode ()
(use-package cython-mode
:defer t
:init
(progn
(evil-leader/set-key-for-mode 'cython-mode
"mhd" 'anaconda-mode-view-doc
"mgg" 'anaconda-mode-goto)
)))
(defun python/init-eldoc ()
(add-hook 'python-mode-hook 'eldoc-mode))