 ;;; init.el --- my basic emacs setup for sane defaults
 
-;; Time-stamp: <2020-09-22 08:59:21 rovalent>
+;; Time-stamp: <2020-09-26 19:46:08 rovalent>
 ;; Copyright 2020 Ronald Valente
 
 ;;; Commentary:

  :ensure t
  :custom (company-lsp-enable-snippet t)
  :after (company lsp-mode))

;; org mode configuration
(use-package org

                          (agenda    . 5)
                          (projects  . 10))))

;; Enable go-mode
(use-package go-mode
  :ensure t
  :mode ("\\.go\\'" . go-mode))

;; Set up before-save hooks to format buffer and add/delete imports.
;; Make sure you don't have other gofmt/goimports hooks enabled.
(defun lsp-go-install-save-hooks ()
  (add-hook 'before-save-hook #'lsp-format-buffer t t)
  (add-hook 'before-save-hook #'lsp-organize-imports t t))
(add-hook 'go-mode-hook #'lsp-go-install-save-hooks)

;; Setup flycheck for syntax checking
(use-package flycheck
  :ensure t
