           ((sh-mode . "Sh") .
            ["template.sh" auto-insert-choose-yas-expand])
           ;; dos
-          ((dos-mode . "Dos") .
+          ((bat-mode . "Dos") .
            ["template.bat" auto-insert-choose-yas-expand])
           ;; python
           ((python-mode . "Python") .

                     cmake-mode
                     csharp-mode
                     dart-mode
                     dos-mode
                     emacs-lisp-mode
                     folio-mode
                     gdb-script-mode

  (mapc (lambda(mode)
          (setq ac-modes (cons mode ac-modes)))
        '(sql-mode nxml-mode cmake-mode folio-mode protobuf-mode
                   python-mode bat-mode gud-mode sh-mode text-mode
                   makefile-mode makefile-automake-mode makefile-gmake-mode
                   autoconf-mode gdb-script-mode awk-mode csv-mode
                   mock-mode org-mode html-mode text-mode sql-mode
