branch: elpa/scala-mode commit c90bbde5ff29c23b1545c7b29edba453fc33f393 Author: Merlin Göttlinger <megoettlin...@gmail.com> Commit: Sam Halliday <sam.halli...@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)