Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add typical ruby syntax things to ruby-mode

  • Loading branch information...
commit 47489a73818980e12b5a04f17a7d2e7dd3a244dc 1 parent 42e5c24
@alandipert authored
Showing with 12 additions and 1 deletion.
  1. +12 −1 init.el
View
13 init.el
@@ -45,6 +45,7 @@
(add-to-list 'package-archives archive))
(package-initialize)
+
;; local sources
(setq el-get-sources
'((:name fuzzy-format
@@ -125,7 +126,17 @@
(:name autopair
:after (lambda ()
(require 'autopair)
- (autopair-global-mode)))))
+ (autopair-global-mode)))
+
+ (:name ruby-mode
+ :after (lambda ()
+ (dolist (f '("Capfile"
+ "Gemfile"
+ "Guardfile"
+ "Vagrantfile"
+ "config.ru"
+ "Rakefile"))
+ (add-to-list 'auto-mode-alist `(,f . ruby-mode)))))))
(setq my-packages
(append
Please sign in to comment.
Something went wrong with that request. Please try again.