Created
April 7, 2022 20:52
-
-
Save TikhonJelvis/0ec2f6e0d50daa34d15bca35428db29f to your computer and use it in GitHub Desktop.
A minor mode for working with big data in Haskell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defface haskell-big-keyword-face | |
'((t (:inherit haskell-keyword-face :weight bold :height 2.0))) | |
"BIG keywords.") | |
(defvar haskell-font-lock-big-data-keywords | |
'(("^data\\>" 0 'font-lock-big-keyword-face t))) | |
(define-minor-mode haskell-big-data-mode | |
"Minor mode for working with BIG data in Haskell. Adds a font | |
lock keyword for rendering 'data' at twice the normal font size." | |
:group haskell-big-data-mode | |
(if haskell-big-data-mode | |
(font-lock-add-keywords nil haskell-font-lock-big-data-keywords) | |
(font-lock-remove-keywords nil haskell-font-lock-big-data-keywords)) | |
(font-lock-flush) | |
(with-no-warnings (font-lock-fontify-buffer))) | |
(provide 'haskell-big-data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment