Daniel Neel
dneelyep@gmail.com
Jim Campbell
jwcampbell@gmail.com

# Emacs, Kate and Vim-style modelines support for gedit

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 EditPreferencesPluginsModelines.

# General Modeline Options

The following options can be set using gedit modelines:

Ancho de tabulación

Ancho da sangría

Inserir espazos no lugar de tabuladores

Axuste de texto

Ancho da marxe dereita

Preferences set using modelines take precedence over the ones specified in the preference dialog.

# Líneas de modo 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

Para obter máis información sobre os modos de liñas de Emacs, visite o Manual de GNU Emacs.

# Líneas de modo 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.

# Líneas de modo Vim

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

et (expandir tabulador)

ts (deter tabulador)

sw (cambiar ancho)

wrap

textwidth

Para obter máis información sobre Vim visite o sitio web de Vim.