emacs-devel
[Top][All Lists]
Advanced

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

Re: linum and AUCTeX: line number face


From: Stephen Berman
Subject: Re: linum and AUCTeX: line number face
Date: Sun, 16 Sep 2007 23:11:44 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

On Sun, 16 Sep 2007 12:30:46 +0200 Stephan Hennig <address@hidden> wrote:

> [This question has formerly been sent to gnu.emacs.help.  Resending now
> to gmane.emacs.devel (with test case).]
>
> Hi,
>
> when linum-mode is activated in LaTeX-mode, line numbers are not set in
> uniform face, but it seems their face is inherited from the current
> line's face, at least with regard to font weight.
[...]
> Is there any way to configure linum to do what I want?

If you customize the linum face to default, then all line numbers have
the default face.  It seems the default face does not "inherit" the
face properties of the string that the linum display property is on,
whereas, for example, the shadow face, used by default by linum.el
version 0.9n and later, does inherit at least some face properties or
attributes.  You can also see the difference with parenthesis
highlighting, for example: if linum face is shadow, then highlighting
a parenthesis in column 0 also highlights the line number, but not if
linum face is default.  I don't know just which other faces behave
like default and which like shadow (though the face (not just the
weight) bold seems to inherit even more attributes than shadow), nor
do I know why there is this difference.  But I do know that this has
to do generally with display properties and display margins, not just
with linum.el.

Steve Berman





reply via email to

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