Skip to content

Instantly share code, notes, and snippets.

@szakharchenko
Created October 17, 2018 05:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save szakharchenko/a479fb90af72ef0243710278f1a7eac2 to your computer and use it in GitHub Desktop.
Save szakharchenko/a479fb90af72ef0243710278f1a7eac2 to your computer and use it in GitHub Desktop.
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