summaryrefslogtreecommitdiffstats
path: root/init.el
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-12-14 21:53:11 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2019-12-14 21:53:11 +0000
commitbe71fd55541fd334376a1011458adac8354972d8 (patch)
treef675d93bb3909b38f7aabdfbd63ed4fddd337120 /init.el
parentf5fd21ad3aa115c5a11a6fec3deaefe9961302dc (diff)
go stuff pretty much working
Diffstat (limited to 'init.el')
-rw-r--r--init.el14
1 files changed, 11 insertions, 3 deletions
diff --git a/init.el b/init.el
index eca18a9..1eecd6e 100644
--- a/init.el
+++ b/init.el
@@ -8,8 +8,10 @@
(require 'package)
-(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa"))
-(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages"))
+(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
+ ("marmalade" . "https://marmalade-repo.org/packages/")
+ ("melpa" . "https://melpa.org/packages/")
+ ("org" . "https://orgmode.org/elpa/")))
(setq package-enable-at-startup nil)
(package-initialize)
@@ -222,7 +224,7 @@
:config
(ido-mode t)
(ido-everywhere t)
- (setq ido-emable-flex-matching t))
+ (setq ido-enable-flex-matching t))
;; Python programming
(use-package elpy
@@ -251,6 +253,8 @@
:commands lsp-ui-mode
:init)
+(add-to-list 'ac-modes 'go-mode)
+
(use-package yasnippet
:commands yas-minor-mode
:hook (go-mode . yas-minor-mode))
@@ -260,3 +264,7 @@
lsp-ui-sideline-enable t
lsp-ui-imenu-enable t
lsp-ui-flycheck-enable t)
+
+(setq lsp-gopls-staticcheck t)
+(setq lsp-eldoc-render-all t)
+(setq lsp-gopls-complete-unimported t)