[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: changing the display of formfeed characters
From: |
Nick Helm |
Subject: |
Re: changing the display of formfeed characters |
Date: |
Mon, 03 Sep 2018 12:30:04 +1200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) |
Javier <invalid@invalid.invalid> writes:
> Has somebody come with any idea how to display ^L in some way without
> breaking whitespace-mode?
You could use whitespace-mode itself to display form-feeds. Assuming you
have whitespace-mode's newline style enabled, try evaling something like
this before you start whitespace-mode:
(add-to-list 'whitespace-display-mappings
'(newline-mark ?\^L [?= ?= ?=]))
If you want the line to extend across the width of your current window,
you could eval something like this instead:
(add-to-list 'whitespace-display-mappings
`(newline-mark ?\^L ,(make-vector (1- (window-width)) ?=)))
You might also be able to use window-configuration-change-hook or
similar to adapt the length of the line as you resize the width of your
window.