             ;; Rust
             ("/main\\.rs$"                     "__main.rs"        rust-mode)
             ("/Cargo.toml$"                    "__Cargo.toml"     rust-mode)
-            ;; SCSS
-            ("\\.scss$"                        "__"               scss-mode)
-            ("/master\\.scss$"                 "__master.scss"    scss-mode)
-            ("/normalize\\.scss$"              "__normalize.scss" scss-mode)
             ;; Slim
             ("/\\(index\\|main\\)\\.slim$"     "__"               slim-mode)
             ;; Shell scripts

;;

(def-package! autoinsert ; built-in
  :defer 1
  :init
  (setq auto-insert-query nil  ; Don't prompt before insertion
        auto-insert-alist nil) ; Tabula rasa
  (after! yasnippet
    (push '+file-templates-dir yas-snippet-dirs))

  :config
  (auto-insert-mode 1)


  (defun +file-templates-add (args)
    (cl-destructuring-bind (regexp trigger &optional mode project-only-p) args
      (push `(,regexp . (lambda () (+file-templates--expand ,trigger ',mode ,project-only-p)))
            auto-insert-alist)))

  (mapc #'+file-templates-add
        (let ((doom (concat "/" (regexp-opt '(".emacs.d" ".doom.d" "doom-emacs" "doom")) "/.*")))
          `(;; General
            ("/\\.gitignore$"                 "__"               gitignore-mode)
            ("/Dockerfile$"                   "__"               dockerfile-mode)
            ("/docker-compose.yml$"           "__"               yaml-mode)
            ("/Makefile$"                     "__"               makefile-gmake-mode)
            ;; elisp
            ("\\.el$"                         "__initfile"       emacs-lisp-mode)
            ("/.dir-locals.el$"               nil)
            ("-test\\.el$"                    "__"               emacs-ert-mode)
            (,(concat doom "/.+\\.el$")       "__doom-module"    emacs-lisp-mode)
            (,(concat doom "/packages\\.el$") "__doom-packages"  emacs-lisp-mode)
            (,(concat doom "/test/.+\\.el$")  "__doom-test"      emacs-lisp-mode)
            (snippet-mode "__" snippet-mode)
            ;; C/C++
            ("\\.h$"                           "__h"              c-mode)
            ("\\.c$"                           "__c"              c-mode)
