;;; -*- lexical-binding: t -*- ;; ;; this file: ;; https://dataswamp.org/~incal/emacs-init/mode-by-filename.el (setq auto-mode-alist `( ("\\.bal\\'" . balance-mode) ("\\.cl\\'" . common-lisp-mode) ("\\.dat\\'" . gnuplot-mode) ("\\.gpi\\'" . gnuplot-mode) ("\\.grm\\'" . sml-mode) ("\\.log\\'" . text-mode) ("\\.lu\\'" . lua-mode) ("\\.nqp\\'" . perl-mode) ("\\.php\\'" . html-mode) ("\\.pic\\'" . nroff-mode) ("\\.pl\\'" . prolog-mode) ("\\.sed\\'" . conf-mode) ("\\.service\\'" . conf-mode) ("\\.tap\\'" . gcode-mode) ("\\.tex\\'" . latex-mode) ("\\.xr\\'" . conf-xdefaults-mode) ("DOS\\'" . text-mode) ("keys\\'" . conf-mode) ("torrc\\'" . conf-mode) ,@auto-mode-alist)) (provide 'mode-by-filename)