 ;; Rust
 
 (defun rust/init-rust-mode ()
-    (use-package rust-mode
-      :ensure t
-      :defer t
-      :config
-      (setq rust-format-on-save t)
-      (setq lsp-rust-clippy-preference "on")
-      ;; See https://github.com/tigersoldier/company-lsp/issues/61
-      (add-hook 'rust-mode-hook
-          (lambda () (setq company-backends
-                           (delete 'company-capf company-backends))))
-      (add-hook 'rust-mode-hook #'lsp)))
+  (use-package rust-mode
+    :ensure t
+    :defer t
+    :config
+    (setq rust-format-on-save t)
+    (setq lsp-rust-clippy-preference "on")
+    ;; See https://github.com/tigersoldier/company-lsp/issues/61
+    (add-hook 'rust-mode-hook
+              (lambda () (setq company-backends
+                               (delete 'company-capf company-backends))))
+    (add-hook 'rust-mode-hook #'lsp)))
 
 ;; Typescript
 

      (setq-local flycheck-javascript-eslint-executable eslint))))

(defun typescript/init-tide-mode ()
    (use-package tide
      :init
      :ensure t
      :after (web-mode company flycheck)))

(defun typescript/init-prettier ()
  (use-package prettier-js

  (interactive)
  (compilation-start (concat "cd " (projectile-project-root)
                             " && GO111MODULE=on go mod vendor")
                     nil (lambda (n) go-vendor-buffer-name) nil))

;; Haskell

(defun haskell/init-haskell-mode ()
  (use-package haskell-mode
    :ensure t
    :defer t
    :config
    (setq haskell-stylish-on-save t)
    (setq haskell-mode-stylish-haskell-path "brittany")))

;; Octave

