GNU-devel ELPA - literate-scratch

literate-scratch Atom Feed

Description
Lisp Interaction w/ text paragraphs
Latest
literate-scratch-2.0.0.20250418.62743.tar (.sig), 2025-Apr-18, 10.0 KiB
Maintainer
Sean Whitton <spwhitton@spwhitton.name>
Website
https://git.spwhitton.name/dotfiles/tree/.emacs.d/site-lisp/literate-scratch.el
Browse ELPA's repository
CGit or Gitweb
Badge

To install this package from Emacs, use package-install or list-packages.

Full description

Variant Lisp Interaction mode for easier interleaving of paragraphs of
plain text with Lisp code.  This means you can have

    ;; This buffer is for text that is not saved ...
    ;; To create a file, visit it with C-x C-f and ...

    (here is some Lisp)

    Here is a plain text paragraph )( including some unmatched parentheses.
    Uh oh!  Paredit won't like that.

    (here is some more Lisp)

but (e.g.) Paredit won't complain about the unmatched parentheses.
Indeed, the whole plain text paragraph is font-locked as a comment.

If you use Paredit but want to be able to use *scratch* for both Lisp
interaction and blocks of plain text, then this mode is for you.
Also compatible with the `orgalist-mode' and `orgtbl-mode' minor modes.

To enable this mode after installing this file, simply customise
`initial-major-mode' to `literate-scratch-mode'.

Old versions

literate-scratch-1.0.0.20240621.41043.tar.lz2024-Jun-212.23 KiB

News

Ver 2.0 2025/04/18 Sean Whitton
    Rewrite core algorithm to use comment starters not comment fences,
    and therefore no `syntax-propertize-extend-region-functions' entry.
    Thanks to Stefan Monnier for comments which prompted this.
    Newly recognise `\\=`(' as starting paragraphs of Lisp.
Ver 1.0 2024/06/21 Sean Whitton
    Initial release.
    Thanks to Philip Kaludercic for review.