[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs shell colors screwed up
From: |
Seth Bird |
Subject: |
Re: emacs shell colors screwed up |
Date: |
Fri, 7 Aug 2009 19:58:47 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Aug 7, 7:51 pm, Kevin Rodgers <kevin.d.rodg...@gmail.com> wrote:
> Seth Bird wrote:
> > I just installed emacs 22.2.1 on Jaunty via apt-get. Here is an
> > example of what happens:
>
> > sbird@server:~$ ls
> > ^[[0m^[[0marc^[[0m ^[[01;34mbqw^[[0m ^[[0mc.arc^[[0m ^
> > [[01;34mclocks^[[0m ^[[01;34mpublic_html^[[0m ^[[01;32mrepeat.sh^
> > [[0m ^[[0mtodo^[[0m
> > ^[[msbird@server:~$
>
> > This happens both when I'm inside gnu screen, and outside of it.
>
> > I want to keep colors, but just obviously have them work properly :)
>
> > my .emacs file:
>
> > (global-set-key (kbd "C-x C-b") 'buffer-menu)
> > (add-hook 'shell-mode-hook '(lambda () (toggle-truncate-lines 1)))
> > (setq comint-prompt-read-only t)
>
> (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
>
> P.S. Upgrade to Emacs 22.3 or 23.1
>
> --
> Kevin Rodgers
> Denver, Colorado, USA
Thank you! that's exactly what I want.
I used to know that, but it's been so long since I've used emacs :(