help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Frobing \n standard display table entry


From: Miles Bader
Subject: Re: Frobing \n standard display table entry
Date: 16 Mar 2001 16:16:08 +0900

[My news server only has the tail of this thread, so I apologize if I'm
repeating something that has been said before.]

Samuel Padgett <samuel.padgett@gte.net> writes:
> Does Emacs 21 have better support for these kinds of things?

The following mostly works in Emacs 21:

   (aset standard-display-table
         ?\n
         (vector (logior ?$ (ash (face-id 'font-lock-keyword-face) 19))
                 ?\n))

This displays a `$' character colored with the `font-lock-keyword-face' face
before every newline.

However, there are some odd cursor-movement glitches when you do this,
which will  have to be fixed up in the next version.  [It does generally
work pretty well though -- I have it turned on right now while I'm
writing this message.]

-Miles
-- 
Love is a snowmobile racing across the tundra.  Suddenly it flips over,
pinning you underneath.  At night the ice weasels come.  --Nietzsche



reply via email to

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