Browse Source

add py-isort

master
Brett Langdon 5 years ago
parent
commit
8132d444a3
No known key found for this signature in database GPG Key ID: E6600FB894DB3D19
2 changed files with 8 additions and 1 deletions
  1. +1
    -1
      emacs.d/custom.el
  2. +7
    -0
      emacs.d/layers/python/init.el

+ 1
- 1
emacs.d/custom.el View File

@ -4,7 +4,7 @@
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(package-selected-packages '(package-selected-packages
'(lsp-python-ms helm-lsp go-mode company projectile helm adoc-mode csv-mode php-mode python-black cython-mode scss-mode vue-mode tide rust-mode company-auctex tex-site auctex sphinx-doc company-lsp lsp-ui lsp-mode ws-butler use-package smartparens pip-requirements osx-clipboard monokai-theme markdown-mode helm-projectile helm-ag godoctor go-guru go-eldoc go-autocomplete flycheck-gometalinter doom-modeline dockerfile-mode docker-compose-mode diminish company-go company-anaconda)))
'(py-isort lsp-python-ms helm-lsp go-mode company projectile helm adoc-mode csv-mode php-mode python-black cython-mode scss-mode vue-mode tide rust-mode company-auctex tex-site auctex sphinx-doc company-lsp lsp-ui lsp-mode ws-butler use-package smartparens pip-requirements osx-clipboard monokai-theme markdown-mode helm-projectile helm-ag godoctor go-guru go-eldoc go-autocomplete flycheck-gometalinter doom-modeline dockerfile-mode docker-compose-mode diminish company-go company-anaconda)))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.


+ 7
- 0
emacs.d/layers/python/init.el View File

@ -33,5 +33,12 @@
:after python :after python
:hook (python-mode . python-black-on-save-mode)) :hook (python-mode . python-black-on-save-mode))
;; Enable `isort`ing files
;; https://github.com/paetzke/py-isort.el
(use-package py-isort
:demand t
:after python
:hook (before-save . py-isort-before-save))
;; Enable Flycheck for python ;; Enable Flycheck for python
(enable-flycheck 'python-mode-hook) (enable-flycheck 'python-mode-hook)

Loading…
Cancel
Save