unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Emanuel Berg <incal@dataswamp.org>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: [External] : Re: Commands to insert a heading and a new page
Date: Sun, 31 Mar 2024 15:49:31 +0000	[thread overview]
Message-ID: <SJ0PR10MB54881B24C2DC44A841A27A9AF3382@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <87plvfxd6l.fsf@dataswamp.org>

> > A simple function to insert a form-feed character:

And two newline chars.

> > (defun new-page ()
> >   "Insert a page separator into the current buffer."
> >   (interactive)
> >   (newline)
> >   (insert ?\f);Form feed is \f or Ctrl-l or ASCII
> 012
> >   (newline))

`C-q C-j C-l C-j` does the same thing.

Get to know `C-q'.
Get to know the ASCII control chars.

> It is not used so often, why and when do you use it?

Sure it is.  Separate text/code pieces,
visually and for navigation.

See (emacs) `Pages':

https://www.gnu.org/software/emacs/manual/html_node/emacs/Pages.html

And customize page separator:

https://www.emacswiki.org/emacs/PrettyControlL
 
> ;; +---------------------+
> ;; | This is not a bluff |
> ;; +---------------------+

See also library boxquote.el:

https://github.com/davep/boxquote.el

  reply	other threads:[~2024-03-31 15:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-26  9:16 Commands to insert a heading and a new page Heime
2024-03-27 22:48 ` tpeplt
2024-03-28  3:12   ` Emanuel Berg
2024-03-31 15:49     ` Drew Adams [this message]
2024-03-31 18:40       ` [External] : " tpeplt
2024-03-31 20:32         ` Drew Adams
2024-04-01  2:07           ` Emanuel Berg
2024-04-01 16:53             ` Drew Adams
2024-04-01  1:20       ` Emanuel Berg
2024-03-28  9:42   ` Heime

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SJ0PR10MB54881B24C2DC44A841A27A9AF3382@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=incal@dataswamp.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).