From: Nick Helm <nick@tenpoint.co.nz>
To: help-gnu-emacs@gnu.org
Subject: Re: changing the display of formfeed characters
Date: Mon, 03 Sep 2018 12:30:04 +1200 [thread overview]
Message-ID: <m2bm9fv2wj.fsf@tenpoint.co.nz> (raw)
In-Reply-To: <pmb8ej$1dnm$1@gioia.aioe.org> (Javier's message of "Fri, 31 Aug 2018 11:22:59 +0000 (UTC)")
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.
next prev parent reply other threads:[~2018-09-03 0:30 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-31 11:22 changing the display of formfeed characters Javier
2018-09-01 13:51 ` Eli Zaretskii
2018-09-02 22:40 ` Drew Adams
2018-09-03 16:12 ` Eli Zaretskii
[not found] ` <mailman.262.1535809931.1284.help-gnu-emacs@gnu.org>
2018-09-02 20:47 ` Javier
2018-09-03 16:14 ` Eli Zaretskii
2018-09-03 0:30 ` Nick Helm [this message]
[not found] ` <mailman.318.1535934620.1284.help-gnu-emacs@gnu.org>
2018-09-03 13:57 ` Javier
2018-09-03 17:23 ` Javier
2018-09-04 6:43 ` Javier
2018-09-04 6:50 ` Javier
2018-09-07 0:26 ` Nick Helm
2018-09-07 3:56 ` Nick Helm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2bm9fv2wj.fsf@tenpoint.co.nz \
--to=nick@tenpoint.co.nz \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.