Posts Tagged lisp

Removing echo in irb while running in emacs

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. 

Leave a Comment

gitting things right

So this friday night found me setting up a source control for myself (finally).

I had no doubts about the capabilities of linus written git so I went ahead with it.

First step : getting git

The git package in ubuntu universe is 1.5.4 which is quite old so head to the git site for the latest package.

Second step : Installing git

Though this step is straightforward, one might face errors as i did.

The simple installation is three steps

~/git$ ./configure

~/git$ make

~/git$ make install

This should install git. If you face errors then the most common problem is that you might not be meeting all the dependencies required to compile git. Best way to ensure that the dependencies are met is to build dependencies of the git core by doing the following

~/git$ sudo apt-get build-dep git-core

After this everything should be hunkydory. This ubuntu forum discussion might be more useful.

After this I wanted a repository on the net. I chose github.

Make an account and follow the subsequent steps and you will be good to go.

Except , I faced a little problem because of my own folly which deserves another quick little post.

Comments (1)