 ;; Julia
 ;; Ruby
 ;; Latex
-;; Go
+(custom-set-variables
+ ;; custom-set-variables was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ '(flycheck-flake8rc ".flake8")
+ '(js-indent-level 2)
+ '(package-selected-packages
+   (quote
+    (flycheck-rust cargo rust-mode arduino-mode dash terraform-mode flymd protobuf-mode flycheck go-eldoc auto-complete-config go-autocomplete auto-complete go-mode groovy-emacs-mode groovy-mode multi-term magithub magit yaml-mode web-mode use-package rjsx-mode rainbow-mode py-isort markdown-mode json-mode exec-path-from-shell ess ensime elpy dockerfile-mode counsel-projectile ace-window)))
+ '(safe-local-variable-values
+   (quote
+    ((eval remove-hook
+           (quote before-save-hook)
+           (quote py-isort-before-save)
+           t)))))
+(custom-set-faces
+ ;; custom-set-faces was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ )

  (setq ensime-startup-notification nil)
  )


;;------;;
;; YAML ;;

;;--------;;
;; Python ;;
;;--------;;
;; Use poetry
(use-package poetry
  :ensure t)

;; Use elpy in python mode
(use-package elpy
  :init
  (add-hook 'python-mode-hook '(lambda ()
                                 (setq python-indent-offset 4)))
  (add-hook 'before-save-hook 'elpy-format-code)
  :config
  (elpy-enable)
  (setq elpy-test-django-with-manage t)
  (setq elpy-modules (delq 'elpy-module-highlight-indentation elpy-modules))
  (setq elpy-rpc-virtualenv-path 'current)
  ;; Permits using pdb.set_trace() when running tests in buffer
  (defun elpy-test-run (working-directory command &rest args)
    (let ((default-directory working-directory))
      (compile (mapconcat #'shell-quote-argument
                          (cons command args)
                          " ")
               t))))

;; Use isort and auto sort imports on save
(use-package py-isort
