Emacs Vagrantfile config

This commit is contained in:
Mitchell Hashimoto 2011-01-05 17:13:30 -08:00
parent 7cfa2b6986
commit 5ae7f2691b
2 changed files with 10 additions and 0 deletions

View File

@ -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.

8
contrib/emacs/vagrant.el Normal file
View File

@ -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))