Tuesday, February 23, 2010

Saner ansi-term in emacs

I like ansi-term in emacs. It is the closest to a "real" terminal, offering all the goodness that bash, zsh, or whatever your favorite shell can give you. However, you definitely lose a few things in going to it. The following emacs code restores at least the things I find most useful: dabbrev-completion, yanking, and correct colors.

When you use this code, note that dabbrev-completion is C-c /, and yanking is C-c C-y.

5 comments:

Anonymous said...

"The following emacs code... ?"

Unknown said...

Do you not see the code? If not, are you using a nonstandard browser?

Anonymous said...

I don't see any code/link

Unknown said...

What browser are you using?

Unknown said...

Also, FYI, the code is at https://gist.github.com/313104.