emacs-devel
[Top][All Lists]
Advanced

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

Re: Background color past the end of the buffer


From: Yuri D'Elia
Subject: Re: Background color past the end of the buffer
Date: Sun, 12 Jul 2015 20:54:59 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.0

On 10/07/15 10:24, Vaidheeswaran C wrote:
> (defun highlight-buffer-footer ()
>   (interactive)
>   (custom-set-variables
>    '(buffer-face-mode-face (quote buffer-footer)))
>   (buffer-face-mode 1)
>   (overlay-put (make-overlay (point-min) (point-max)) 'face 'buffer-text))

Huh, that's pretty nasty indeed.

> If you are only intereseted in catching whitespaces at the tail end of
> the buffer, you can turn on the `empty' style in M-x whitespace-mode
> and M-x whitespace-toggle-options.

Not quite. In a hack I'm doing, I want to define a binary boundary in
the text (in the sense: above/below), and I do that by changing the
background color of one of the two.

I just overlay the region I'm interested in, but I want to extend the
background color of the face to the end of the frame, since it creates a
visually ambiguous situation otherwise (besides not looking good).

Maybe I can just temporarily extend the buffer content instead, but I
would loose the EOF fringe indicator and need to calculate how much
lines I need to append...





reply via email to

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