Skip to content

Instantly share code, notes, and snippets.

@sshirokov
Created November 1, 2009 00:10
Show Gist options
  • Select an option

  • Save sshirokov/223324 to your computer and use it in GitHub Desktop.

Select an option

Save sshirokov/223324 to your computer and use it in GitHub Desktop.
Rinari uses inf- rather than inferior-ruby-
(defadvice rinari-console (after rinari-console-prompt-fix first (&rest ignore) activate)
"Change the prompt"
(let ((pattern "^>> ")
(inferior-ruby-first-prompt-pattern nil)
(inferior-ruby-prompt-pattern nil))
(with-current-buffer "*ruby*"
(set (make-local-variable 'inferior-ruby-first-prompt-pattern) pattern)
(set (make-local-variable 'inferior-ruby-prompt-pattern) pattern))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment