A simple plugin for Gedit to force the option spaces-instead-of-tabs off for all Makefiles.
Gedit is a powerful text editor for Gnome. It allows the user to
choose between space and tabulation for indentations, because many people
do not use tabulations any longer. And for most usage, I agree with them
and use Gedit with spaces. However, make requires tabulations in
Makefiles. That is why I wrote this plugin to automatically switch back to
tabulations on Makefiles.
Download
Thanks to the benevolent Lars Wirzenius, a Debian package is also available.
Manual Installation
Copy the contents of the archive into one of the following directories:
- /usr/lib/gedit-2/plugins/
- /usr/local/lib/gedit-2/plugins/
- ~/.gnome2/gedit/plugins/ (just for a user)
Run Gedit and activate the plugin in the preferences of Gedit. Also, configure Gedit to uses spaces by default.
License
Copyright (c) 2009, Mickaël Delahaye
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.