   (setq TeX-PDF-mode t)
   (setq TeX-electric-sub-and-superscript t)
   (setq TeX-insert-braces nil)
+  (setq TeX-electric-math '("$" . "$"))
   (add-hook 'LaTeX-mode-hook 'emacs-fast/latex-mode-hook))
 
 ;;;; ---------------- Other packages to manage LaTeX related stuff -----------------------

(use-package latex
  :ensure auctex
  :commands (TeX-mode LaTeX-mode LaTeX-mode-hook math-minor-mode)
  :mode     ("\\.[tT]e[xX]\\'" . LaTeX-mode)
  :bind (:map LaTeX-mode-map
              ("`e" . LaTeX-environment)
              ("`s" . LaTeX-section)

  (nlinum-mode 1)
  (turn-on-reftex)
  (prettify-symbols-mode)
  (whitespace-mode)
  (auctex-latexmk-setup)
  (TeX-source-correlate-mode))

