<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>vendor/idle-highlight.el</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -27,7 +27,7 @@
  
 (defun turn-off-tool-bar ()
   (tool-bar-mode -1))
- 
+
 (add-hook 'coding-hook 'local-column-number-mode)
 (add-hook 'coding-hook 'local-comment-auto-fill)
 (add-hook 'coding-hook 'turn-on-hl-line-mode)
@@ -45,6 +45,7 @@
           (0 (progn (compose-region (match-beginning 1) (match-end 1)
                                     ,(make-char 'greek-iso8859-7 107))
                     nil))))))
+
 ;; Other
 
 (defun recompile-init ()</diff>
      <filename>mv-defuns.el</filename>
    </modified>
    <modified>
      <diff>@@ -30,5 +30,4 @@
      (idle-highlight +1)
      (run-coding-hook))))
 
-
-(provide 'mv-lisps)
\ No newline at end of file
+(provide 'mv-lisps)</diff>
      <filename>mv-lisps.el</filename>
    </modified>
    <modified>
      <diff>@@ -14,4 +14,4 @@
   (unless (eq major-mode 'org-mode)
     ad-do-it))
 
-(Provide 'mv-org)
\ No newline at end of file
+(provide 'mv-org)
\ No newline at end of file</diff>
      <filename>mv-org.el</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,94 @@
+(eval-after-load 'ruby-mode
+  '(progn
+     (ignore-errors (require 'ruby-compilation))
+     (setq ruby-use-encoding-map nil)
+     (add-hook 'ruby-mode-hook 'inf-ruby-keys)
+     (define-key ruby-mode-map (kbd &quot;RET&quot;) 'reindent-then-newline-and-indent)
+     (define-key ruby-mode-map (kbd &quot;C-M-h&quot;) 'backward-kill-word)
+     (define-key ruby-mode-map (kbd &quot;C-c l&quot;) &quot;lambda&quot;)))
+
+(global-set-key (kbd &quot;C-h r&quot;) 'ri)
+
+;; Rake files are ruby too, as are gemspecs, rackup files and gemfiles
+(add-to-list 'auto-mode-alist '(&quot;\\.rake$&quot; . ruby-mode))
+(add-to-list 'auto-mode-alist '(&quot;Rakefile$&quot; . ruby-mode))
+(add-to-list 'auto-mode-alist '(&quot;\\.gemspec$&quot; . ruby-mode))
+(add-to-list 'auto-mode-alist '(&quot;\\.ru$&quot; . ruby-mode))
+(add-to-list 'auto-mode-alist '(&quot;Gemfile$&quot; . ruby-mode))
+
+;; We never want to edit Rubinius bytecode
+(add-to-list 'completion-ignored-extensions &quot;.rbc&quot;)
+
+;;; Rake
+
+(defun pcomplete/rake ()
+  &quot;Completion rules for the `ssh' command.&quot;
+  (pcomplete-here (pcmpl-rake-tasks)))
+ 
+(defun pcmpl-rake-tasks ()
+   &quot;Return a list of all the rake tasks defined in the current
+projects. I know this is a hack to put all the logic in the
+exec-to-string command, but it works and seems fast&quot;
+   (delq nil (mapcar '(lambda(line)
+(if (string-match &quot;rake \\([^ ]+\\)&quot; line) (match-string 1 line)))
+(split-string (shell-command-to-string &quot;rake -T&quot;) &quot;[\n]&quot;))))
+ 
+(defun rake (task)
+  (interactive (list (completing-read &quot;Rake (default: default): &quot;
+                                      (pcmpl-rake-tasks))))
+  (shell-command-to-string (concat &quot;rake &quot; (if (= 0 (length task)) &quot;default&quot; task))))
+
+;; Clear the compilation buffer between test runs.
+(eval-after-load 'ruby-compilation
+  '(progn
+     (defadvice ruby-do-run-w/compilation (before kill-buffer (name cmdlist))
+       (let ((comp-buffer-name (format &quot;*%s*&quot; name)))
+         (when (get-buffer comp-buffer-name)
+           (with-current-buffer comp-buffer-name
+             (delete-region (point-min) (point-max))))))
+     (ad-activate 'ruby-do-run-w/compilation)))
+
+;;; Hooks
+
+(add-hook 'ruby-mode-hook 'run-coding-hook)
+(add-hook 'ruby-mode-hook 'idle-highlight)
+
+;;; HAML and SASS
 (require 'haml-mode)
 (require 'sass-mode)
 
+;;; Flymake
+
+(eval-after-load 'ruby-mode
+  '(progn
+     (require 'flymake)
+ 
+     ;; Invoke ruby with '-c' to get syntax checking
+     (defun flymake-ruby-init ()
+       (let* ((temp-file (flymake-init-create-temp-buffer-copy
+                          'flymake-create-temp-inplace))
+              (local-file (file-relative-name
+                           temp-file
+                           (file-name-directory buffer-file-name))))
+         (list &quot;ruby&quot; (list &quot;-c&quot; local-file))))
+ 
+     (push '(&quot;.+\\.rb$&quot; flymake-ruby-init) flymake-allowed-file-name-masks)
+     (push '(&quot;Rakefile$&quot; flymake-ruby-init) flymake-allowed-file-name-masks)
+ 
+     (push '(&quot;^\\(.*\\):\\([0-9]+\\): \\(.*\\)$&quot; 1 2 nil 3)
+           flymake-err-line-patterns)
+ 
+     (add-hook 'ruby-mode-hook
+               (lambda ()
+                 (when (and buffer-file-name
+                            (file-writable-p
+                             (file-name-directory buffer-file-name))
+                            (file-writable-p buffer-file-name)
+                            (not (subsetp
+                                  (list (current-buffer))
+                                  (tramp-list-remote-buffers))))
+                   (local-set-key (kbd &quot;C-c d&quot;)
+                                  'flymake-display-err-menu-for-current-line)
+                   (flymake-mode t))))))
+
 (provide 'mv-ruby)
\ No newline at end of file</diff>
      <filename>mv-ruby.el</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>cd33307ab684b5092b272cc859f55b9bb8009c41</id>
    </parent>
  </parents>
  <author>
    <name>Marten Veldthuis</name>
    <email>marten@veldthuis.com</email>
  </author>
  <url>http://github.com/marten/emacs.d/commit/273e3f096f881284d306b56b6647c51d9ee3dee2</url>
  <id>273e3f096f881284d306b56b6647c51d9ee3dee2</id>
  <committed-date>2009-11-05T07:15:01-08:00</committed-date>
  <authored-date>2009-11-05T07:15:01-08:00</authored-date>
  <message>idle-hghlight rubystuffs</message>
  <tree>cde5b8d532d8c599f10392f9c5bd8291d0dc6042</tree>
  <committer>
    <name>Marten Veldthuis</name>
    <email>marten@veldthuis.com</email>
  </committer>
</commit>
