       (rustup-full-path (chomp (shell-command-to-string "which rustup"))))
   (message (concat "Setting up lsp-rust with " rustup-full-path " and using channel " rustup-default-channel))
   (setq lsp-rust-rls-command (list rustup-full-path "run" rustup-default-channel "rls"))
-  (with-eval-after-load 'lsp-mode
-    (require 'lsp-rust))
-  (add-hook 'rust-mode-hook #'lsp-rust-enable))
+  (add-hook 'rust-mode-hook #'lsp))
   
 (setq my-cargo-args "")
 (defun cargo-args-prompt ()

 '(delete-selection-mode nil)
 '(package-selected-packages
   (quote
    (use-package dracula-theme dracula-them projectile lsp-clangd olivetti go-eldoc go-mode lsp-go toml-mode slime paredit lsp-rust love-minor-mode highlight-symbol highlight-parentheses futhark-mode flymake-lua flycheck eziam-theme elpy cquery company-lua company-lsp cmake-mode cargo))))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.

(global-eldoc-mode)
(global-flycheck-mode)
(global-highlight-parentheses-mode)

;; Add all system path directories to emacs' exec-path
(dolist (dir (split-string (getenv "PATH") path-separator) nil)
  (extend-path dir))

