Usage: (require 'flymake-lua) (add-hook 'lua-mode-hook 'flymake-lua-load) Note: literally stolen from Steve Purcell's Flymake Ruby. See http://github.com/purcell/flymake-ruby