hvesalai / emacs-scala-mode

The definitive scala-mode for emacs
http://ensime.org
GNU General Public License v3.0
361 stars 68 forks source link

Add conceal/prettify feature to optionally display code as unicode symbols #106

Closed mgttlinger closed 8 years ago

mgttlinger commented 8 years ago

Many people enjoy reading operators/operations as their Unicode symbol known from mathematics, however it is somewhat inconvenient to write those symbols.

This is where the prettify feature of Emacs comes to the rescue (in other editors often called "conceal"). It allows us to write our comparisons for example as >= as usual but seeing in the editor. (Note that in the source it will still be >=).

I would like to have a default configuration for these replacements in ensime/scala-mode that you can enable or disable.

Similar plugins for other editors: https://github.com/mpollmeier/vim-scalaConceal https://github.com/zjhmale/intellij-haskell-conceal

mgttlinger commented 8 years ago

I will try to create a PR with a few common rules.

mgttlinger commented 8 years ago

PR: https://github.com/ensime/emacs-scala-mode/pull/108