From 62f897fdf5988840ee5538e30fbd3c7bcb715735 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 21 Feb 2011 00:27:43 +0100 Subject: New .emacs style * .emacs only loops through .emacs.d and runs the *.el files there. * files are automatically compiled before loading. But only if it hasn't already been compiled. * all emacs el files, save for the startup scripts, have been moved to .emacs.d/elisp --- emacs.d/10-file-associations.el | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 emacs.d/10-file-associations.el (limited to 'emacs.d/10-file-associations.el') diff --git a/emacs.d/10-file-associations.el b/emacs.d/10-file-associations.el new file mode 100644 index 0000000..00084f4 --- /dev/null +++ b/emacs.d/10-file-associations.el @@ -0,0 +1,8 @@ +(add-to-list 'auto-mode-alist '("\\.vala$" . vala-mode)) +(add-to-list 'auto-mode-alist '("\\.vapi$" . vala-mode)) +(add-to-list 'auto-mode-alist '("\\.cs$" . csharp-mode)) +(add-to-list 'auto-mode-alist '("\\.bat$" . batch-mode)) +(add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode)) + +(add-to-list 'file-coding-system-alist '("\\.vala$" . utf-8)) +(add-to-list 'file-coding-system-alist '("\\.vapi$" . utf-8)) -- cgit v1.2.3-54-g00ecf