Browse Source

Update Python layer

master
Brett Langdon 5 years ago
parent
commit
2dfc7a239f
Signed by: brettlangdon GPG Key ID: A70042D88B95AA2B
2 changed files with 10 additions and 10 deletions
  1. +1
    -2
      emacs.d/custom.el
  2. +9
    -8
      emacs.d/layers/python/init.el

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

@ -4,8 +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
(quote
(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))))
'(adoc-mode csv-mode php-mode lsp-python-ms go-mode company projectile helm 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.


+ 9
- 8
emacs.d/layers/python/init.el View File

@ -1,8 +1,9 @@
;; lsp-mode
;; https://github.com/emacs-lsp/lsp-mode
(use-package lsp-mode
:hook (python-mode . lsp)
:commands lsp)
(use-package lsp-python-ms
:ensure t
:init (setq lsp-python-ms-auto-install-server t)
:hook (python-mode . (lambda ()
(require 'lsp-python-ms)
(lsp)))) ; or lsp-deferred
(use-package lsp-ui
:ensure t
@ -10,7 +11,7 @@
:commands lsp-ui-mode)
(use-package company-lsp
:hook (python-mode . lsp))
:commands company-lsp)
;; Enable pip-requirements when editing a `requirements.txt` file
(use-package pip-requirements
@ -30,8 +31,8 @@
;; https://github.com/wbolster/emacs-python-black
(use-package python-black
:demand t
:after python)
;; :hook (python-mode . python-black-on-save-mode))
:after python
:hook (python-mode . python-black-on-save-mode))
;; Enable Flycheck for python
(enable-flycheck 'python-mode-hook)

Loading…
Cancel
Save