Created
October 17, 2018 05:25
-
-
Save szakharchenko/a479fb90af72ef0243710278f1a7eac2 to your computer and use it in GitHub Desktop.
Lua 'prettification' sample
This file contains hidden or 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
;; Use this, and turn on prettify-symbols-mode in a buffer | |
;; Isn't easy to disable in mmm-mode, though | |
(add-hook | |
'lua-mode-hook | |
(lambda () | |
(setq prettify-symbols-alist | |
'( | |
("function" . 955) | |
("local" . 8466) | |
("==" . 8801) | |
("~=" . 8802) | |
("<=" . 8804) | |
(">=" . 8805) | |
("and" . "&_") | |
("or" . "|_") | |
("not" . "!_") | |
("do" . "{") | |
("then" . "{") | |
("elseif" . "}:{") | |
("else" . "}{") | |
("end" . "}") | |
)) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment