"spamfilteraccount@gmail.com" <spamfilteraccount@gmail.com> writes:
>
> > I'd like to color the headings in outline, so that the headings have a
> > distinct background color which spans horizontally across the visible
> > window.
>
> This reminds me a bit of hl-line-mode.
I took a look at hl-line-mode implementation and the solution is very
simple. It puts an overlay onto the whole line including the newline
character (note the 1+):
(move-overlay hl-line-overlay
(line-beginning-position) (1+ (line-end-position))
(current-buffer)))))
I also tried it with text properties and it works the same way:
(put-text-property (line-beginning-position) (+ 1
(line-end-position))
'face 'highlight)
I thought I finally found something which emacs couldn't do, but I was
wrong. Emacs cannot be beaten. :)