Tell TeXstudio to compile a particular document with LuaLaTeX

It is not hard to change the default compilation engine in TeXstudio from PDFLaTeX to LuaLaTeX (or any other engine for that matter). But if I only want to use LuaLaTeX for a single document, it gets tedious to go into the menus and find the LuaLaTeX option all the time. And the command line approach is also more time-consuming.

Is there some clever way to tell TeXstudio to always compile this (and only this) document using LuaLaTeX)?

• you can define a shortcut for example (F10 if you don't use glossary) – touhami Apr 4 '15 at 9:02

% !TeX program = lualatex

at the beginning of your .tex file.
• It may work with some other editors, but not all. It doesn't work for my own preferred editor, for example: TeXShop (on Mac OS X). The magic comment for TeXShop would have been % !TEX TS-program = LuaLaTeX – Franck Pastor Apr 4 '15 at 8:47