 
 (setq default-tab-width 2)
 (setq tab-width 2)
+
+;; Open current file in TextMate.
+(defun textmate-open-buffer ()
+  (interactive)
+  (shell-command-to-string (concat "mate " buffer-file-name)))
+
 
 ;; Clojure
 ;;(eval-after-load 'clojure-mode '(clojure-slime-config))

(define-key rinari-minor-mode-map [(control meta shift up)] 'rinari-find-model)
(define-key rinari-minor-mode-map [(control meta shift right)] 'rinari-find-view)

(defun rake-generate-html ()
  (interactive)
  (rake "generate_html"))


;; Manually set PATH for use by eshell, rspec-mode, etc.
(let ((path))
  (setq path (concat "/opt/ruby-enterprise/bin:"
                     "~/bin:"
                     "~/src/homebrew/bin:"
                     "/usr/local/bin:"
                     "/usr/bin"))
  (setenv "PATH" path))

(add-to-list 'load-path (concat dotfiles-dir "/vendor"))
