Removing echo in irb while running in emacs

by currentricity

My emacs ruby setup was behaving strangely. While using the inferior ruby mode i.e. M-x run-ruby , the command given to the irb was echoing. Very annoying and no visible solution on the net.

I opened up inf-ruby.el and realized that ruby mode was built on top of the shell mode of emacs. Now the solution was simple. One just had to turn off echo in comint mode. Just add the following to your init.el (yes i use windows at work)

;; for turning of the echo

(defun echo-false-comint ()
(setq comint-process-echoes t))

(add-hook  ‘comint-mode-hook  ‘echo-false-comint)

And the world will seem like a better place to live in. Thank you emacs lisp. 

Advertisements