]> git.eshelyaron.com Git - sweep.git/commitdiff
Provide basic 'prettify-symbols-alist' in Sweep Prolog mode
authorEshel Yaron <me@eshelyaron.com>
Thu, 14 Sep 2023 16:23:48 +0000 (18:23 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 14 Sep 2023 16:23:48 +0000 (18:23 +0200)
* sweeprolog.el (sweeprolog-mode): set a local value for
'prettify-symbols-alist' that renders the neck operator as a unicode
left arrow.

sweeprolog.el

index 266db397d5b72543872471e2ed102514b6af53f0..3941d816b97aaaa7491c805410f2ec9c65b9785e 100644 (file)
@@ -4688,6 +4688,7 @@ certain contexts to maintain conventional Prolog layout."
   (setq-local comment-multi-line t)
   (setq-local add-log-current-defun-function
               #'sweeprolog-add-log-current-defun)
+  (setq-local prettify-symbols-alist '((":-" . ?←)))
   (setq-local mode-line-process
               '(:eval
                 (when (sweeprolog-buffer-loaded-since-last-modification-p)