Skip to content
This repository
Browse code

Use ruby-mode for Vagrantfile.

  • Loading branch information...
commit 6b38e16eaf847cee27c8b3fdf58d8bb88af5caf3 1 parent ada2ac9
Phil Hagelberg authored

Showing 3 changed files with 11 additions and 7 deletions. Show diff stats Hide diff stats

  1. +7 6 init.el
  2. +2 0  starter-kit-elpa.el
  3. +2 1  starter-kit-ruby.el
13 init.el
@@ -20,7 +20,14 @@
20 20 (setq dotfiles-dir (file-name-directory
21 21 (or (buffer-file-name) load-file-name)))
22 22
  23 +;; Load up ELPA, the package manager
  24 +
23 25 (add-to-list 'load-path dotfiles-dir)
  26 +
  27 +(require 'package)
  28 +(package-initialize)
  29 +(require 'starter-kit-elpa)
  30 +
24 31 (add-to-list 'load-path (concat dotfiles-dir "/elpa-to-submit"))
25 32
26 33 (setq autoload-file (concat dotfiles-dir "loaddefs.el"))
@@ -40,12 +47,6 @@
40 47 ;; backport some functionality to Emacs 22 if needed
41 48 (require 'dominating-file)
42 49
43   -;; Load up ELPA, the package manager
44   -
45   -(require 'package)
46   -(package-initialize)
47   -(require 'starter-kit-elpa)
48   -
49 50 ;; Load up starter kit customizations
50 51
51 52 (require 'starter-kit-defuns)
2  starter-kit-elpa.el
@@ -2,6 +2,8 @@
2 2 ;;
3 3 ;; Part of the Emacs Starter Kit
4 4
  5 +(require 'cl)
  6 +
5 7 (defvar starter-kit-packages (list 'idle-highlight
6 8 'ruby-mode
7 9 'inf-ruby
3  starter-kit-ruby.el
@@ -16,11 +16,12 @@
16 16
17 17 ;; Rake files are ruby, too, as are gemspecs, rackup files, etc.
18 18 (add-to-list 'auto-mode-alist '("\\.rake$" . ruby-mode))
19   -(add-to-list 'auto-mode-alist '("Rakefile$" . ruby-mode))
20 19 (add-to-list 'auto-mode-alist '("\\.gemspec$" . ruby-mode))
21 20 (add-to-list 'auto-mode-alist '("\\.ru$" . ruby-mode))
  21 +(add-to-list 'auto-mode-alist '("Rakefile$" . ruby-mode))
22 22 (add-to-list 'auto-mode-alist '("Gemfile$" . ruby-mode))
23 23 (add-to-list 'auto-mode-alist '("Capfile$" . ruby-mode))
  24 +(add-to-list 'auto-mode-alist '("Vagrantfile$" . ruby-mode))
24 25
25 26 ;; We never want to edit Rubinius bytecode
26 27 (add-to-list 'completion-ignored-extensions ".rbc")

0 comments on commit 6b38e16

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