emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/scala-mode c90bbde 176/217: Added a few prettify rules for


From: ELPA Syncer
Subject: [nongnu] elpa/scala-mode c90bbde 176/217: Added a few prettify rules for cats/scalaz operators (#112)
Date: Sun, 29 Aug 2021 11:31:07 -0400 (EDT)

branch: elpa/scala-mode
commit c90bbde5ff29c23b1545c7b29edba453fc33f393
Author: Merlin Göttlinger <megoettlinger@gmail.com>
Commit: Sam Halliday <sam.halliday@gmail.com>

    Added a few prettify rules for cats/scalaz operators (#112)
---
 scala-mode-prettify-symbols.el | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/scala-mode-prettify-symbols.el b/scala-mode-prettify-symbols.el
index 03ee4c6..73dd259 100644
--- a/scala-mode-prettify-symbols.el
+++ b/scala-mode-prettify-symbols.el
@@ -68,13 +68,24 @@
     (":=" . ?≔))
   "Prettify rules for other mixed code pieces.")
 
+(defconst
+  scala-mode-pretty-categories-alist
+  '(("flatMap" . ?⤜)
+    (">>=" . ?⤜)
+    ("bind" . ?⤜)
+    (">>" . ?≫)
+    ("followedBy" . ?≫)
+    ("<+>" . ?⊕))
+  "Prettify rules for category theory related operators (for use with 
cats/scalaz/...).")
+
 (defcustom
   scala-prettify-symbols-alist
   (append
    scala-mode-pretty-bool-alist
    scala-mode-pretty-collection-alist
    scala-mode-pretty-arrows-alist
-   scala-mode-pretty-misc-alist)
+   scala-mode-pretty-misc-alist
+   scala-mode-pretty-categories-alist)
   "All prettify rules to be applied in scala code."
   :type 'alist
   :group 'scala)



reply via email to

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