Browse Source

emacs: fix up python config

master
Brett Langdon 5 years ago
parent
commit
80e0cebbc6
No known key found for this signature in database GPG Key ID: E6600FB894DB3D19
4 changed files with 13 additions and 8 deletions
  1. +1
    -1
      emacs.d/custom.el
  2. +4
    -5
      emacs.d/layers/python/init.el
  3. +2
    -2
      gitconfig
  4. +6
    -0
      starship.toml

+ 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
'(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)))
'(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 was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.


+ 4
- 5
emacs.d/layers/python/init.el View File

@ -1,17 +1,16 @@
;; lsp-mode
(setq lsp-enable-snippet nil)
(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
:hook (python-mode . lsp)
:commands lsp-ui-mode)
(use-package company-lsp
:commands company-lsp)
(use-package helm-lsp
:commands helm-lsp-workspace-symbol)
;; Enable pip-requirements when editing a `requirements.txt` file
(use-package pip-requirements


+ 2
- 2
gitconfig View File

@ -1,7 +1,7 @@
[user]
name = brettlangdon
email = me@brett.is
signingkey = A70042D88B95AA2B
email = brett.langdon@datadoghq.com
signingkey = E6600FB894DB3D19
[credential]
helper = store


+ 6
- 0
starship.toml View File

@ -15,3 +15,9 @@ disabled = false
# I really only use 1 default region,
# I don't need it showing all the time
disabled = true
[gcloud]
disabled = true
[username]
disabled = true

Loading…
Cancel
Save