Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Lua 'prettification' sample
;; 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
You can’t perform that action at this time.