mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-16 11:09:29 +00:00
[emacs] Add Elpy
This commit is contained in:
parent
dc74af1c0a
commit
a178ba5f42
1 changed files with 26 additions and 0 deletions
|
@ -301,6 +301,32 @@ JavaScript.
|
||||||
:ensure t
|
:ensure t
|
||||||
:mode "\.py$")
|
:mode "\.py$")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
**** Elpy
|
||||||
|
|
||||||
|
Full functionality requires a number of python packages to be
|
||||||
|
installed:
|
||||||
|
|
||||||
|
#+BEGIN_SRC sh :exports code
|
||||||
|
# Either of these
|
||||||
|
pip install rope
|
||||||
|
pip install jedi
|
||||||
|
# flake8 for code checks
|
||||||
|
pip install flake8
|
||||||
|
# importmagic for automatic imports
|
||||||
|
pip install importmagic
|
||||||
|
# and autopep8 for automatic PEP8 formatting
|
||||||
|
pip install autopep8
|
||||||
|
# and yapf for code formatting
|
||||||
|
pip install yapf
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
#+name: programming
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package elpy
|
||||||
|
:ensure t
|
||||||
|
:init (with-eval-after-load 'python (elpy-enable))
|
||||||
|
:commands (elpy-enable))
|
||||||
|
#+END_SRC
|
||||||
**** Cython
|
**** Cython
|
||||||
#+name: programming
|
#+name: programming
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
|
Loading…
Reference in a new issue