From 7869360008d87ca4b459c703f4894625dd8181cc Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 26 Jan 2014 01:59:44 -0500 Subject: Follow Purcell's emacs.d structure User init files are added using provide/require. https://github.com/purcell/emacs.d --- lisp/init-modes.el | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lisp/init-modes.el (limited to 'lisp/init-modes.el') diff --git a/lisp/init-modes.el b/lisp/init-modes.el new file mode 100644 index 0000000..5db7a41 --- /dev/null +++ b/lisp/init-modes.el @@ -0,0 +1,15 @@ +;; These could be kept alongside related topics, but for whatever reason +;; I prefer having them together. + +(defvar km/modes '(("\\.zsh$" . shell-script-mode) + ("\\.*rc$" . conf-unix-mode) + ("\\.org.txt$" . org-mode) + ("PKGBUILD" . pkgbuild-mode)) + "Auto mode mappings") + +(mapc + (lambda (mode) (setq auto-mode-alist + (cons mode auto-mode-alist))) + km/modes) + +(provide 'init-modes) -- cgit v1.2.3