Browse Source

add python-black

master
Brett Langdon 6 years ago
parent
commit
2a2ee421d2
No known key found for this signature in database GPG Key ID: B664881177781B04
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.
;; If there is more than one, they won't work right.
'(package-selected-packages
'(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)))
'(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 was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.


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

@ -26,5 +26,12 @@
:hook (python-mode . sphinx-doc-mode)
:commands sphinx-docs-mode)
;; Enable `black`ing files
;; https://github.com/wbolster/emacs-python-black
(use-package python-black
:demand t
:after python
:hook (python-mode . python-black-on-save-mode))
;; Enable Flycheck for python
(enable-flycheck 'python-mode-hook)

Loading…
Cancel
Save