help-gnu-emacs
[Top][All Lists]
Advanced

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

RE: [External] : Re: Commands to insert a heading and a new page


From: Drew Adams
Subject: RE: [External] : Re: Commands to insert a heading and a new page
Date: Sun, 31 Mar 2024 15:49:31 +0000

> > 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 via email to

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