   (exec-path-from-shell-copy-env "SSH_AGENT_PID"))
 
 ;; rust-mode
-(use-package rust-mode)
+(use-package rust-mode
+  :mode (("\\.rs\\'" . rust-mode)))
 
 ;; all-the-icons
 ;; A utility package to collect various Icon Fonts and propertized them within Emacs

;; Integrated environment for TeX
(use-package tex-fold
  :ensure auctex
  :init (add-hook 'TeX-mode-hook #'TeX-fold-mode))

;; LaTeX with AUCTeX
;; Integrated environment for TeX
(use-package tex-mode
  :ensure auctex)

;; LaTeX with AUCTeX
;; Integrated environment for TeX
(use-package latex
  :ensure auctex
  :defer nil
  :config
  ;; No language-specific hyphens please
  (setq LaTeX-babel-hyphen nil)

;; tramp
;; do stuff over ssh at al.
(use-package tramp
  :defer t
  :init
  ;; Set default connection method for TRAMP
  (setq tramp-default-method "ssh")
