The first two lines of a document are scanned for Emacs modelines, and gedit supports the following Emacs modeline options:
Dokumentu baten lehehengo bi lerroak eskaneatzen dira Emacs modulerroen bila.