[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 20:32:03 +0000 |
> >> > (newline)
> >> > (insert ?\f
> >> > (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.
>
> Yes. Your instructions can be a little confusing to new users. Taken
> literally, they won’t work. New users should read that the key
> sequences are:
>
> C-j
> C-q C-l
> C-j
Actually, that's not right. But neither
was what I wrote. ;-( This is correct:
C-q C-j
C-q C-l
C-q C-j
C-j is often bound, even by default in
vanilla Emacs (`emacs -Q'), to commands
that do other things, besides insert a
newline char.
E.g.: In `emacs-lisp-mode' it's bound
to `electric-newline-and-maybe-indent'.
In *scratch* it's bound to
`eval-print-last-sexp'.
If you want to insert a newline char
then use `C-q C-l'. Don't use C-l.
> Thank you for writing the ‘pp-c-l’ library (pp-c-l.el).
De rien.
> 1. Is this library provided as a package? If so, can you provide the
> name of the archive? It is not available from either...
It's a Lisp file, `pp-c-l.el'. The doc page
I mentioned points to the file, but here's
the direct URL:
https://www.emacswiki.org/emacs/download/pp-c-l.el
Just (require 'pp-c-l), after putting the file in
your `load-path`. Nothing else is needed.
> 2. I added "-*- lexical-binding: t; -*-" to
> the first line
No reason to do that, here.
> and compiled the file using Emacs 29.3. The compiler
> reported the following:
You can ignore the byte-compiler warnings.
You see them because the library's compatible
with older Emacs versions.
> >> ;; +---------------------+
> >> ;; | This is not a bluff |
> >> ;; +---------------------+
> >
> > See also library boxquote.el:
> >
> > https://github.com/davep/boxquote.el
>
> This library, ‘boxquote’ is available as package in the ‘melpa-stable’
> archive, listed above, so it can be easily installed, updated, or
> un-installed.
It can also be easily...just by downloading it
(a single Lisp file) FROM the GIT repo whose
URL I gave TO a directory in your `load-path'.
Here's the direct URL to the file:
https://github.com/davep/boxquote.el/raw/main/boxquote.el