From 5ae7f2691b3d798f1539fd32621dcce1061426f2 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 5 Jan 2011 17:13:30 -0800 Subject: [PATCH] Emacs Vagrantfile config --- contrib/README.md | 2 ++ contrib/emacs/vagrant.el | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 contrib/emacs/vagrant.el diff --git a/contrib/README.md b/contrib/README.md index cb3a03108..f0377dc67 100644 --- a/contrib/README.md +++ b/contrib/README.md @@ -6,5 +6,7 @@ for each item will be kept below. ## List of Contrib Items +* `emacs` - Contains a file showing how to associate `Vagrantfile` with + Ruby syntax highlighting. * `vim` - Contains a `.vim` file for enabling Ruby syntax highlighting for `Vagrantfile`s. diff --git a/contrib/emacs/vagrant.el b/contrib/emacs/vagrant.el new file mode 100644 index 000000000..4e0895725 --- /dev/null +++ b/contrib/emacs/vagrant.el @@ -0,0 +1,8 @@ +;;-------------------------------------------------------------------- +;; Teach emacs to syntax highlight Vagrantfile as Ruby. +;; +;; Installation: Copy the line below into your emacs configuration, +;; or drop this file anywhere in your "~/.emacs.d" directory and be +;; sure to "load" it. +;;-------------------------------------------------------------------- +(add-to-list 'auto-mode-alist '("Vagrantfile$" . ruby-mode))