More python improvements;

- stripping out everything i don't actually need
- moving to a more vanilla config.
This commit is contained in:
jowj 2019-06-07 11:26:46 -05:00
parent 8406f60396
commit 7c9d9fddf7

View File

@ -219,29 +219,21 @@ I really use this for just the searching from emacs
(global-set-key (kbd "C-c s") 'helm-surfraw-duck))) (global-set-key (kbd "C-c s") 'helm-surfraw-duck)))
#+END_SRC #+END_SRC
* python stuff * python stuff
- pylint is required (pip install pylint, yada yada)
- pep8 (pip install pep8)
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package pylint (use-package pylint
:ensure t) :ensure t)
(use-package python-mode
:ensure t) (setq python-shell-interpreter "/usr/local/bin/python3"
(use-package elpy python-shell-interpreter-args "-i")
:ensure t
:config
(progn
(require 'elpy)
(when (require 'flycheck nil t)
(setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
(add-hook 'elpy-mode-hook 'flycheck-mode))
(elpy-enable)
(setq python-shell-interpreter "/usr/local/bin/python3"
python-shell-interpreter-args "-i")))
(use-package py-autopep8 (use-package py-autopep8
:ensure t :ensure t
:config :config
(progn (progn
(add-hook 'elpy-mode-hook 'py-autopep8-enable-on-save))) (add-hook 'python-mode-hook 'py-autopep8-enable-on-save)))
#+END_SRC #+END_SRC