diff --git a/contrib/README.md b/contrib/README.md index cb3a0310..f0377dc6 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 00000000..4e089572 --- /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))