 (if (window-system)
     (set-selected-frame-dark))
 
+(use-package flymake
+  :ensure t)
+
+(use-package flymake-go
+  :ensure t)
+
+(use-package lsp-mode
+  :ensure t
+  :hook (go-mode . lsp-deferred)
+  :commands (lsp lsp-deferred))
+
+;;(add-hook 'go-mode-hook #'lsp-deferred)
+
+;; optional - provides fancier overlays
+;; (use-package lsp-ui
+;;   :ensure t
+;;   :commands lsp-ui-mode)
+
+;; if you use company-mode for completion (otherwise, complete-at-point works out of the box):
+;; (use-package company-lsp
+;;   :ensure t
+;;   :commands company-lsp)

 '(ns-command-modifier (quote meta))
 '(package-selected-packages
   (quote
    (mu4e-maildirs-extension mu4e github-notifier paradox browse-url-dwim browse-at-remote dired+ kubernetes kubernetes-tramp adoc-mode pinentry dumb-jump ini-mode jinja2-mode smart-shift go-add-tags counsel counsel-notmuch helm-system-packages helm-notmuch weechat slack go-impl hide-lines atomic-chrome notmuch-labeler notmuch-orgmode notmuch-org-mode notmuch gnus-desktop-notify magithub go-stacktracer golint irony rtags fringe-helper git-gutter company magit go-projectile terraform-mode direnv w3m gist pass kubernetes-overview helm-ls-git yaml-mode wgrep-ag vcl-mode use-package smex racer python-mode protobuf-mode peep-dired markdown-mode magit-gh-pulls itail helm-rtags helm-gtags guide-key google-c-style godoctor go-guru go-eldoc go-dlv git-gutter-fringe dockerfile-mode company-irony company-go cmake-mode cmake-ide clang-format cargo ag)))
 '(send-mail-function (quote smtpmail-send-it))
 '(smtpmail-smtp-server "smtp.gmail.com")
 '(smtpmail-smtp-service 25))

      package-archive-priorities
      '(("GNU ELPA"     . 10)
        ("MELPA Stable" . 5)
        ("MELPA"        . 15)))

(package-initialize)

