summaryrefslogtreecommitdiffstats
path: root/init.el
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-12-14 22:04:57 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2019-12-14 22:04:57 +0000
commitad7ae1995143a2838d5ed41c4d71a66af6e371ab (patch)
treea23f0e9607d641644d6716eb749a8bf26a5fe3e5 /init.el
parentbe71fd55541fd334376a1011458adac8354972d8 (diff)
very basic python config
Diffstat (limited to 'init.el')
-rw-r--r--init.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/init.el b/init.el
index 1eecd6e..0d02bf6 100644
--- a/init.el
+++ b/init.el
@@ -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