diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2019-12-14 22:04:57 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2019-12-14 22:04:57 +0000 |
commit | ad7ae1995143a2838d5ed41c4d71a66af6e371ab (patch) | |
tree | a23f0e9607d641644d6716eb749a8bf26a5fe3e5 /init.el | |
parent | be71fd55541fd334376a1011458adac8354972d8 (diff) |
very basic python config
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -241,9 +241,13 @@ (setq elpy-modules (delq 'elpy-module-flymake elpy-modules)) (add-hook 'elpy-mode-hook 'flycheck-mode))) +;; Make sure auto-complete works in python-mode +(add-to-list 'ac-modes 'python-mode) + ;; Go programming (use-package lsp-mode :hook (go-mode . lsp-deferred) + :hook (python-mode . lsp-deferred) :commands (lsp lsp-deferred) :config (add-to-list 'auto-mode-alist '("\\.go\\'" . go-mode))) @@ -253,11 +257,13 @@ :commands lsp-ui-mode :init) +;; Make sure auto-complete works in go-mode (add-to-list 'ac-modes 'go-mode) (use-package yasnippet :commands yas-minor-mode - :hook (go-mode . yas-minor-mode)) + :hook (go-mode . yas-minor-mode) + :hook (python-mode . yas-minor-mode)) (setq lsp-ui-doc-enable nil lsp-ui-peek-enable t |