mate-desktop / pluma

A powerful text editor for MATE
http://www.mate-desktop.org
GNU General Public License v2.0
158 stars 66 forks source link

modelines plugin: add a shorter version of the 'textwidth' option ('tw') #690

Closed ghost closed 11 months ago

raveit65 commented 11 months ago

Please rebase with master to fix CI building.

raveit65 commented 11 months ago

I do not use the modul for myself. How can this be tested?

ghost commented 11 months ago

modelines allow you to set variables specific to a file. If you put the following in the last line of a Python program, you would get a textwidth of 60 chars when editing that file:

# vim: tw=60

In the case of Pluma the Display right margin at column option will be set to 60. See: https://www.cs.swarthmore.edu/oldhelp/vim/modelines.html