Daniel Neel
dneelyep@gmail.com
Jim Campbell
jwcampbell@gmail.com
Emacs, Kate and Vim-style modelines support for gedit

# Modelines

The Modelines plugin allows gedit to analyze the lines of text at the start and end of a file, and then apply a set of document preferences to the file. The Modelines plugin supports a subset of the options used by the Emacs, Kate and Vim text editors.

To enable the Modelines plugin, select Edit Preferences Plugins Modelines.

# General Modeline Options

The following options can be set using gedit modelines:

Šířka tabelátoru

Šířka odsazení

Inserting spaces instead of tabs

Zalamování textu

Šířka pravého okraje

Volby nastavené s použitím řádků s režimem mají přednost před stejnými volbami zadanými v dialogu Volby.

# Řádky s režimem ve stylu Emacs

The first two lines of a document are scanned for Emacs modelines, and gedit supports the following Emacs modeline options:

Tab-width

Indent-offset

Indent-tabs-mode

Text auto-wrap

For more information on Emacs modelines, visit the GNU Emacs Manual.

# Řádky s režimem ve stylu Kate

The first and last ten lines a document are scanned for Kate modelines, and gedit supports the following Kate modeline options:

tab-width

indent-width

space-indent

word-wrap

word-wrap-column

For more information about Kate modelines, visit the Kate website.

# Řádky s režimem ve stylu Vim

The first and last three lines a document are scanned for Vim modelines, and gedit supports the following Vim modeline options:

et (expandtab)

ts (tabstop)

sw (shiftwidth)

wrap

textwidth

For more information on Vim modelines, visit the Vim website.