[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compilation: highlight current error
From: |
Peter Münster |
Subject: |
Re: compilation: highlight current error |
Date: |
Mon, 27 Jun 2016 18:35:26 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
On Mon, Jun 27 2016, Eli Zaretskii wrote:
>> I would like the current error in the compilation buffer to be
>> highlighted. How could this be done please?
>
> Turn on the hl-line-mode in the compilation buffer?
Thanks for this hint! There is perhaps a bug: when jumping to the next
error, the highlighted line does not change.
But I've found a work-around:
--8<---------------cut here---------------start------------->8---
(add-hook 'next-error-hook (lambda ()
(with-current-buffer next-error-last-buffer
(hl-line-mode 0)
(hl-line-mode 1))))
--8<---------------cut here---------------end--------------->8---
--
Peter