jump to navigation

Junk characters in Emacs January 30, 2006

Posted by Chen Yufei in Emacs.
trackback

The newly installed Emacs 23 on my Gentoo displays some junk characters in the emacs shell when I use “ls” in it.(some thing like “^[01[03m…”) Really annoying at first but after gooled, I found the solution, just add this in .emacs file:

(add-hook ‘shell-mode-hook ‘ansi-color-for-comint-mode-on)

All goes well then and you can see different colors to indicate different kinds of files in emacs shell when you use “ls”. I didn’t see this feature when I were using Emacs 23 on SuSE. These junk characters should be something related to the colors.

Comments»

1. hullmmx - March 13, 2006

更新的不够勤啊^^

2. Stop Mold in your home - August 15, 2006

good job

Think you are on track with this post

3. Irate Wanderer - July 18, 2007

May God bless and keep you always May your wishes all come true May you always do for others And let others do for you May you build a ladder to the stars And climb on every rung And may you stay forever young


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: