[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs and colors in compilation buffer

From: Hemant Kumar
Subject: Re: Emacs and colors in compilation buffer
Date: Sun, 13 Oct 2013 11:31:08 +0530

On 13-Oct-2013, at 11:28 AM, Hemant Kumar <address@hidden> wrote:

> Hello folks,
> I am using for searching in directory and 
> the with colors enabled in ag it looks like, 
> (Please note same problem exists with various 
> ack modes as well)
> As you can see it doesn't completely break and ansi color sequences are 
> properly converted (at least some of it). In fact when search output is small 
> enough, it looks perfect. But lets say when I grepping something like Rails 
> code and then the result looks like:
> As if the the color which was supposed to highlight the match has taken the 
> background!
> I already have following bit in my configuration file:
> (require 'ansi-color)
> (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
> (defun colorize-compilation-buffer ()
>   (interactive)
>   (toggle-read-only)
>   (ansi-color-apply-on-region (point-min) (point-max))
>   (toggle-read-only))
> (add-hook 'compilation-filter-hook 'colorize-compilation-buffer)
> Which  should fix this problem but it doesn't completely.  

Forgot to add, this Emacs running on OSX -10.8.5. Emacs version is, 
Basically compiled from git head couple of months back.

I do use Color Themes but I have tried switching to vanilla look but results 
look all the same.

Cheers and thanks again

reply via email to

[Prev in Thread] Current Thread [Next in Thread]