Skip to content
Browse files

Emacs Vagrantfile config

  • Loading branch information...
1 parent 7cfa2b6 commit 5ae7f2691b3d798f1539fd32621dcce1061426f2 @mitchellh mitchellh committed Jan 5, 2011
Showing with 10 additions and 0 deletions.
  1. +2 −0 contrib/README.md
  2. +8 −0 contrib/emacs/vagrant.el
View
2 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.
View
8 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))

0 comments on commit 5ae7f26

Please sign in to comment.
Something went wrong with that request. Please try again.