]> git.eshelyaron.com Git - sweep.git/commit
MODIFIED: Replace "faces styles" with a theme emulating PceEmacs
authorEshel Yaron <me@eshelyaron.com>
Fri, 23 Jun 2023 08:59:18 +0000 (11:59 +0300)
committerEshel Yaron <me@eshelyaron.com>
Fri, 23 Jun 2023 09:10:28 +0000 (12:10 +0300)
commit1e718510d6d9b121512ace8c43a9894e04b5f8f2
tree38f8fce2b2acb92befc94f78239d0bf439a9473a
parent2fcb87dd90737a134cab02fb178c7bf0a31cf8eb
MODIFIED: Replace "faces styles" with a theme emulating PceEmacs

This adds a custom theme called 'sweeprolog-pce' that mimics the
highlighting of SWI-Prolog's built-in editor, PceEmacs.  It obsoletes
the "faces styles" feature that Sweep provided thus far.  For backward
compatibility, The user option 'sweeprolog-faces-style' is retained
and mostly still respected.

Thanks to Stefan Monnier for suggesting this approach for simplifying
Sweep's code and making it more conformant with Emacs conventions.

* sweeprolog-pce-theme.el: New file.

* sweeprolog.el: Remove 'sweeprolog-defface' macro its
'sweeprolog-*-face' functions, use plain face definitions and refer to
them directly by their names instead.  Also extend
'custom-theme-load-path' to include the new sweeprolog-pce-theme.el.

* README.org (Semantic Highlighting): Replace "Available Styles"
subsection with new subsection "PceEmacs Theme".
README.org
sweeprolog-pce-theme.el [new file with mode: 0644]
sweeprolog.el